Skip to content

Commit

Permalink
Fix embarrasing bug in graphviz test
Browse files Browse the repository at this point in the history
  • Loading branch information
anergictcell committed Aug 21, 2024
1 parent ba57531 commit e325dc2
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/ontology.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1159,11 +1159,9 @@ impl Ontology {
let term_name = term.name().replace(' ', "\n");
let child_name = child.name().replace(' ', "\n");
code.push_str(&format!("\"{term_name}\" -> \"{child_name}\"\n"));
println!("In function: {code}");
}
}
code.push_str("}\n");
println!("At the end: {code}");
code
}

Expand Down Expand Up @@ -1507,7 +1505,6 @@ mod test {
}

#[test]
#[ignore = "fails with weird \0 extra characters"]
fn graphiv() {
let test_terms = [
("Root", 1u32),
Expand All @@ -1519,10 +1516,10 @@ mod test {

let mut v: Vec<u8> = Vec::new();
for (name, id) in test_terms {
let t = HpoTermInternal::new(String::from(name), id.into());
let t = HpoTermInternal::new(name.into(), id.into());
v.append(&mut t.as_bytes());
}
ont.add_terms_from_bytes(Bytes::new(&v, parser::binary::BinaryVersion::V1));
ont.add_terms_from_bytes(Bytes::new(&v, parser::binary::BinaryVersion::V3));
let mut ont = ont.terms_complete();

ont.add_parent_unchecked(1u32, 2u32);
Expand Down

0 comments on commit e325dc2

Please sign in to comment.