diff --git a/tests/lib.rs b/tests/api.rs similarity index 99% rename from tests/lib.rs rename to tests/api.rs index 19f6959..71ea1cc 100644 --- a/tests/lib.rs +++ b/tests/api.rs @@ -12,9 +12,9 @@ use std::path::Path; use mrusty::*; -mod api; +mod example; -use api::{Scalar, Vector}; +use example::{Scalar, Vector}; #[test] fn api_init() { diff --git a/tests/api/mod.rs b/tests/example/mod.rs similarity index 83% rename from tests/api/mod.rs rename to tests/example/mod.rs index 49c5a88..9bde09f 100644 --- a/tests/api/mod.rs +++ b/tests/example/mod.rs @@ -8,5 +8,5 @@ mod scalar; mod vector; -pub use api::scalar::Scalar; -pub use api::vector::Vector; +pub use self::scalar::Scalar; +pub use self::vector::Vector; diff --git a/tests/api/scalar.rs b/tests/example/scalar.rs similarity index 98% rename from tests/api/scalar.rs rename to tests/example/scalar.rs index 2ec8eec..84e2a6f 100644 --- a/tests/api/scalar.rs +++ b/tests/example/scalar.rs @@ -7,7 +7,7 @@ use mrusty::*; -use api::Vector; +use super::Vector; #[derive(Clone, Debug, PartialEq)] pub struct Scalar { diff --git a/tests/api/vector.rs b/tests/example/vector.rs similarity index 98% rename from tests/api/vector.rs rename to tests/example/vector.rs index 0e77c34..d54b808 100644 --- a/tests/api/vector.rs +++ b/tests/example/vector.rs @@ -7,7 +7,7 @@ use mrusty::*; -use api::Scalar; +use super::Scalar; #[derive(Clone, Debug, PartialEq)] pub struct Vector {