[redland-dev] enumerator fixups
Dave Beckett
dave.beckett at bristol.ac.uk
Tue Jul 20 17:36:34 BST 2004
On Tue, 20 Jul 2004 16:02:54 +0100
Edd Dumbill <edd at usefulinc.com> wrote:
> The semantics of enumerators were wrong. Here's a fix that makes
> things nicer.
>
> Now you can do:
>
> foreach (Node n in model.GetTargets (foo, bar)) {
> }
Thanks, commited. And after a bit of fussing, I've made a few other
minor fixes. 3 Unit tests are failing now though (it might be from
some earlier change):
$ cd csharp/examples
$ make unittests
...
.......F.F.F....
Tests run: 13, Failures: 3, Not run: 0, Time: 0.690371 seconds
Failures:
1) Redland.StreamTest.IterateModel : ../../data/dc.rdf should have 3 statements
in <0x000ad> Redland.StreamTest:IterateModel ()
in (unmanaged) (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[])
in <0x00004> (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[])
in <0x00097> System.Reflection.MonoMethod:Invoke (object,System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo)
2) Redland.StreamTest.ParseAsStream : ../../data/dc.rdf should have 3 statementsin <0x000e5> Redland.StreamTest:ParseAsStream ()
in (unmanaged) (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[])
in <0x00004> (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[])
in <0x00097> System.Reflection.MonoMethod:Invoke (object,System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo)
3) Redland.StreamTest.FindStatements1 : Should have found_stms 3 statements
in <0x0011a> Redland.StreamTest:FindStatements1 ()
in (unmanaged) (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[])
in <0x00004> (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[])
in <0x00097> System.Reflection.MonoMethod:Invoke (object,System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo)
By the way, this is to the new redland-bindings package at
http://www.redland.opensource.ac.uk/bindings/
containing the language bindings, moved from the main redland package
as I mentioned previously. The CVS details for this package are at
http://www.redland.opensource.ac.uk/bindings/INSTALL.html
The main redland tarball is now devoid of the language bindings.
Dave
More information about the redland-dev
mailing list