mirror of
https://github.com/italicsjenga/agb.git
synced 2025-01-22 23:26:33 +11:00
Add some tests for tools
This commit is contained in:
parent
ab4bcad10e
commit
bd6089f7c9
1 changed files with 16 additions and 0 deletions
|
@ -132,4 +132,20 @@ mod test {
|
|||
)
|
||||
}
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn should_find_root_directory() -> Result<(), Error> {
|
||||
assert_ne!(find_agb_root_directory()?.to_string_lossy(), "");
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn should_read_version() -> Result<(), Error> {
|
||||
let root_directory = find_agb_root_directory()?;
|
||||
let my_version = read_cargo_toml_version(&root_directory.join("tools"))?;
|
||||
|
||||
assert_eq!(my_version, "0.1.0");
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue