File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed
Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -840,7 +840,7 @@ impl<I> GTriGSource<I> {
840840 if txt[ 2 ..] . starts_with ( '(' ) {
841841 Ok ( ( 3 , Some ( GTriGState :: TripleTerm ) ) )
842842 } else {
843- Ok ( ( 3 , Some ( GTriGState :: ReifiedTriple ( true ) ) ) )
843+ Ok ( ( 2 , Some ( GTriGState :: ReifiedTriple ( true ) ) ) )
844844 }
845845 } else {
846846 self . iriref ( txt) . map ( |offset| ( offset, None ) )
Original file line number Diff line number Diff line change @@ -674,6 +674,7 @@ fn nested_reified_triple() -> TestResult {
674674#[ test_case( r"<< :s :p :o ~ >> :a :b" , 2 ; "1p1 triples with empty reified triple" ) ]
675675#[ test_case( r"<< :s :p :o ~ :r >> :a :b" , 2 ; "1p1 triples with explicitly reified triple" ) ]
676676#[ test_case( r"{[ :p :o ] .}" , 1 ; " trig-syntax-bnode-08" ) ]
677+ #[ test_case( r":G {<<:s :p :o>> :q :z .}" , 2 ; " trig12-rt-01" ) ]
677678fn count_triples ( input : & str , exp : usize ) -> TestResult {
678679 for i in [ input, & format ! ( "{input}\n # this is a comment" ) ] {
679680 let data = format ! ( "PREFIX : <ex:> {i}" ) ;
You can’t perform that action at this time.
0 commit comments