Skip to content

Commit

Permalink
add a dependency to cargo-miri-test
Browse files Browse the repository at this point in the history
  • Loading branch information
David Renshaw committed Jun 29, 2017
1 parent e3fa4fb commit 7a755ce
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
10 changes: 10 additions & 0 deletions cargo-miri-test/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions cargo-miri-test/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ version = "0.1.0"
authors = ["Oliver Schneider <git-spam-no-reply9815368754983@oli-obk.de>"]

[dependencies]
byteorder = "1.0"
8 changes: 7 additions & 1 deletion cargo-miri-test/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
extern crate byteorder;

use byteorder::{BigEndian, ByteOrder};

fn main() {
assert_eq!(5, 5);
let buf = &[1,2,3,4];
let n = <BigEndian as ByteOrder>::read_u32(buf);
assert_eq!(n, 0x01020304);
}

0 comments on commit 7a755ce

Please sign in to comment.