Update quickcheck to 0.9
This commit is contained in:
parent
8d26a5eca3
commit
a4b1bb6e9b
2 changed files with 2 additions and 3 deletions
|
@ -14,4 +14,4 @@ edition = "2018"
|
||||||
linked-hash-map = ">=0.0.9, <0.6"
|
linked-hash-map = ">=0.0.9, <0.6"
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
quickcheck = "0.7"
|
quickcheck = "0.9"
|
||||||
|
|
|
@ -3,7 +3,6 @@ extern crate yaml_rust;
|
||||||
extern crate quickcheck;
|
extern crate quickcheck;
|
||||||
|
|
||||||
use quickcheck::TestResult;
|
use quickcheck::TestResult;
|
||||||
use std::error::Error;
|
|
||||||
use yaml_rust::{Yaml, YamlEmitter, YamlLoader};
|
use yaml_rust::{Yaml, YamlEmitter, YamlLoader};
|
||||||
|
|
||||||
quickcheck! {
|
quickcheck! {
|
||||||
|
@ -16,7 +15,7 @@ quickcheck! {
|
||||||
}
|
}
|
||||||
match YamlLoader::load_from_str(&out_str) {
|
match YamlLoader::load_from_str(&out_str) {
|
||||||
Ok(output) => TestResult::from_bool(output.len() == 1 && input == output[0]),
|
Ok(output) => TestResult::from_bool(output.len() == 1 && input == output[0]),
|
||||||
Err(err) => TestResult::error(err.description()),
|
Err(err) => TestResult::error(err.to_string()),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue