Skip to content

Commit

Permalink
Improved test naming.
Browse files Browse the repository at this point in the history
  • Loading branch information
dragostis committed Apr 30, 2016
1 parent 1617b2a commit 05f1844
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions tests/lib.rs → tests/api.rs
Expand Up @@ -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() {
Expand Down
4 changes: 2 additions & 2 deletions tests/api/mod.rs → tests/example/mod.rs
Expand Up @@ -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;
2 changes: 1 addition & 1 deletion tests/api/scalar.rs → tests/example/scalar.rs
Expand Up @@ -7,7 +7,7 @@

use mrusty::*;

use api::Vector;
use super::Vector;

#[derive(Clone, Debug, PartialEq)]
pub struct Scalar {
Expand Down
2 changes: 1 addition & 1 deletion tests/api/vector.rs → tests/example/vector.rs
Expand Up @@ -7,7 +7,7 @@

use mrusty::*;

use api::Scalar;
use super::Scalar;

#[derive(Clone, Debug, PartialEq)]
pub struct Vector {
Expand Down

0 comments on commit 05f1844

Please sign in to comment.