Skip to content

Commit

Permalink
fix #149
Browse files Browse the repository at this point in the history
  • Loading branch information
pchampin committed Dec 4, 2023
1 parent 719f7eb commit 74a4708
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions turtle/src/serializer/_pretty.rs
Original file line number Diff line number Diff line change
Expand Up @@ -407,6 +407,7 @@ impl<'a, W: Write> Prettifier<'a, W> {

fn find_st_index<T: Term>(&self, term: T) -> Option<usize> {
find_subject(term, &self.subject_types[self.graph_range.clone()])
.map(|i| i + self.graph_range.start)
}
}

Expand Down
5 changes: 5 additions & 0 deletions turtle/src/serializer/trig.rs
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,11 @@ pub(crate) mod test {
_:b rdf:first 43; rdf:rest ().
}
"#,
r#"# issue 149
PREFIX : <https://example.org/>
:s :p :o .
GRAPH :g { _:b :p2 :o2 }
"#,
];

#[test]
Expand Down

0 comments on commit 74a4708

Please sign in to comment.