Skip to content

Commit

Permalink
Update quickcheck to 0.9
Browse files Browse the repository at this point in the history
  • Loading branch information
XVilka committed May 27, 2020
1 parent 0c0f84c commit f918e84
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ edition = "2018"
linked-hash-map = ">=0.0.9, <0.6"

[dev-dependencies]
quickcheck = "0.7"
quickcheck = "0.9"
3 changes: 1 addition & 2 deletions tests/quickcheck.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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! {
Expand All @@ -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()),
}
}
}

0 comments on commit f918e84

Please sign in to comment.