Update quickcheck to 0.9

This commit is contained in:
Anton Kochkov 2020-05-27 14:25:59 +08:00
parent 92d775a448
commit 3cfe953325
2 changed files with 2 additions and 3 deletions

View file

@ -14,4 +14,4 @@ edition = "2018"
linked-hash-map = ">=0.0.9, <0.6"
[dev-dependencies]
quickcheck = "0.7"
quickcheck = "0.9"

View file

@ -3,7 +3,6 @@ extern crate yaml_rust;
extern crate quickcheck;
use quickcheck::TestResult;
use std::error::Error;
use yaml_rust::{Yaml, YamlEmitter, YamlLoader};
quickcheck! {
@ -16,7 +15,7 @@ quickcheck! {
}
match YamlLoader::load_from_str(&out_str) {
Ok(output) => TestResult::from_bool(output.len() == 1 && input == output[0]),
Err(err) => TestResult::error(err.description()),
Err(err) => TestResult::error(err.to_string()),
}
}
}