removed duplicate tests

This commit is contained in:
debris
2015-12-02 22:56:38 +01:00
parent b9181b42bc
commit 166b84d489
2 changed files with 6 additions and 62 deletions

View File

@@ -54,7 +54,7 @@ pub fn execute_test_from_file<T, F>(path: &Path, f: &mut F) where T: JsonTest, F
f(test.input(), test.output())
}
pub fn execute_tests_in_directory<T, F>(pattern: &str, f: &mut F) where T: JsonTest, F: FnMut(String, T::Input, T::Output) {
pub fn execute_tests_from_directory<T, F>(pattern: &str, f: &mut F) where T: JsonTest, F: FnMut(String, T::Input, T::Output) {
for path in glob(pattern).unwrap().filter_map(Result::ok) {
execute_test_from_file::<T, _>(&path, &mut | input, output | {
f(path.to_str().unwrap().to_string(), input, output);
@@ -62,7 +62,3 @@ pub fn execute_tests_in_directory<T, F>(pattern: &str, f: &mut F) where T: JsonT
}
}
#[test]
fn it_works() {
}