]> git.lizzy.rs Git - rust.git/commit
tests: Use Result::expect() throughout
authorKamal Marhubi <kamal@marhubi.com>
Sun, 31 Jan 2016 17:58:38 +0000 (12:58 -0500)
committerKamal Marhubi <kamal@marhubi.com>
Sun, 31 Jan 2016 18:10:09 +0000 (13:10 -0500)
commit2b991bc260d539b4cfa186495cec9555ba323cd8
tree0341537e277bccd54fcea5c6829ff017f021a57a
parentedcc4ec6c078fbe2cb734b014d830236900414f1
tests: Use Result::expect() throughout

`Result::expect()` was added in Rust 1.4. Using it tidies up the code,
and also helps by printing error details, eg, printing syntax error
details if a regex fails to compile. It adds a colon followed by the
`Debug` output from any error, making the periods in messages
unnecessary.
tests/system.rs
tests/target/chains-no-overlow-2.rs