mirror of
https://github.com/nushell/nushell.git
synced 2024-11-26 18:33:50 +01:00
5afbfb5c2c
# Description This PR is just a minor development improvement. While working on another feature, I noticed that the root crate lists the super useful `pretty_assertions` in the root crate but doesn't use it in most tests. With this change `pretty_assertions::assert_eq!` is used instead of `core::assert_eq!` for better diffs when debugging the tests. I thought of adding the dependency to other crates but I decided not to since I didn't want a huge disruptive PR :)
12 lines
229 B
Rust
12 lines
229 B
Rust
mod commands;
|
|
|
|
use nu_test_support::nu;
|
|
use pretty_assertions::assert_eq;
|
|
|
|
#[test]
|
|
fn doesnt_break_on_utf8() {
|
|
let actual = nu!(cwd: ".", "echo ö");
|
|
|
|
assert_eq!(actual.out, "ö", "'{}' should contain ö", actual.out);
|
|
}
|