Fix path calculation, fix test

This commit is contained in:
Daniela Brozzoni
2020-02-22 11:52:30 -08:00
committed by Alekos Filini
parent 2a7c7d5272
commit 914719ccf4
3 changed files with 16 additions and 7 deletions

View File

@@ -646,7 +646,7 @@ mod test {
assert_eq!(tree.get_last_index(ScriptType::Internal).unwrap(), None);
let res = tree.increment_last_index(ScriptType::External).unwrap();
assert_eq!(res, 1337);
assert_eq!(res, 1338);
let res = tree.increment_last_index(ScriptType::Internal).unwrap();
assert_eq!(res, 0);
@@ -654,7 +654,7 @@ mod test {
tree.get_last_index(ScriptType::External).unwrap(),
Some(1338)
);
assert_eq!(tree.get_last_index(ScriptType::Internal).unwrap(), Some(1));
assert_eq!(tree.get_last_index(ScriptType::Internal).unwrap(), Some(0));
}
// TODO: more tests...