Skip to content

Commit

Permalink
Move the test files to the assets subdirectory
Browse files Browse the repository at this point in the history
  • Loading branch information
Geal committed Nov 7, 2015
1 parent 0139f88 commit 44559f5
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 9 deletions.
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
target/*
Cargo.lock
FullRecognition.jpg
bigbuckbunny.mp4
map.rs
oldsrc/
realworld/
small.mp4
src/generator.rs
.DS_Store
docs/
Binary file added assets/bigbuckbunny.mp4
Binary file not shown.
Binary file added assets/small.mp4
Binary file not shown.
5 changes: 5 additions & 0 deletions assets/testfile.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
abcdabcdabcdabcdabcd
efgh
coin coin
hello
blah
2 changes: 1 addition & 1 deletion src/stream.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1001,7 +1001,7 @@ mod tests {

#[test]
fn seeking_consumer() {
let mut f = FileProducer::new("testfile.txt", 200).unwrap();
let mut f = FileProducer::new("assets/testfile.txt", 200).unwrap();
f.refill();

let mut a = SeekingConsumer { state: ConsumerState::Continue(Move::Consume(0)), position: SeekState::Begin };
Expand Down
12 changes: 6 additions & 6 deletions tests/mp4.rs
Original file line number Diff line number Diff line change
Expand Up @@ -515,17 +515,17 @@ fn explore_mp4_file(filename: &str) {
//assert!(false);
}

/*

#[test]
fn file_test() {
explore_mp4_file("./small.mp4");
fn small_test() {
explore_mp4_file("assets/small.mp4");
}


#[test]
fn bunny_test() {
//explore_mp4_file("bigbuckbunny.mp4");
fn big_bunny_test() {
explore_mp4_file("assets/bigbuckbunny.mp4");
}
*/



0 comments on commit 44559f5

Please sign in to comment.