Skip to content

Commit

Permalink
Merge branch 'master' into namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
wmedrano committed Jan 14, 2017
2 parents a5288b8 + e999e5b commit 07a7732
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/test/mod.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// time related functionality in lib.rs
mod test_time;

// client.rs excluding functionality that involves ports or callbacks
mod test_client;

Expand Down
14 changes: 14 additions & 0 deletions src/test/test_time.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
use super::super::*;

#[test]
fn time_can_get_time() {
get_time();
}

#[test]
fn time_is_monotonically_increasing() {
let initial_t = get_time();
default_sleep();
let later_t = get_time();
assert!(initial_t < later_t, "failed {} < {}", initial_t, later_t);
}

0 comments on commit 07a7732

Please sign in to comment.