I'm trying to create some unit tests for our own crate. It's a new version of this crate updated to use the newest version of Rust and new libraries: https://crates.io/crates/fractal-api
I added a 'tests' directory to our project, and now am trying to use it.
use fractal_api as API;
#[test]
fn test_login() {
//assert_eq!(4, adder::add_two(2));
}
If I try to import as 'fractal-api' or 'fractal-api-server', I get this error:
expected one of `::`, `;`, or `as`, found `-`
Otherwise, cargo can't seem to find it. So, where can I find the name of the crate that I can use to upload? Do I need to specify it somewhere from the crate itself?
Thanks!