From 05f1844d186956fa18e8fbac0a9e5206165aa7bd Mon Sep 17 00:00:00 2001 From: Dragos Tiselice Date: Sat, 30 Apr 2016 15:33:47 +0300 Subject: [PATCH] Improved test naming. --- tests/{lib.rs => api.rs} | 4 ++-- tests/{api => example}/mod.rs | 4 ++-- tests/{api => example}/scalar.rs | 2 +- tests/{api => example}/vector.rs | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) rename tests/{lib.rs => api.rs} (99%) rename tests/{api => example}/mod.rs (83%) rename tests/{api => example}/scalar.rs (98%) rename tests/{api => example}/vector.rs (98%) 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 {