mirror of
https://github.com/nushell/nushell.git
synced 2025-08-10 07:09:03 +02:00
Requested Changes
- Removed explicit type annotation. - Changed panic to assert_eq
This commit is contained in:
committed by
Simon Curtis
parent
82c2ae1cfd
commit
7efbfe020c
@ -163,14 +163,14 @@ pub fn check_example_evaluates_to_expected_output(
|
||||
let expected = DebuggableValue(expected);
|
||||
let result = DebuggableValue(&result);
|
||||
if result != expected {
|
||||
panic!(
|
||||
"\x1b[31mError:\x1b[0m The result of example \x1b[34m'{}'\x1b[0m for the command \x1b[34m'{}'\x1b[0m differs from the expected value.\n\n\
|
||||
Expected: {:?}\n\
|
||||
Actual: {:?}\n",
|
||||
assert_eq!(
|
||||
result,
|
||||
expected,
|
||||
"\x1b[31mError:\x1b[0m The result of example \x1b[34m'{}'\x1b[0m for the command \x1b[34m'{}'\x1b[0m differs from the expected value.\n\nExpected: {:?}\nActual: {:?}\n",
|
||||
example.description,
|
||||
cmd_name,
|
||||
expected,
|
||||
result
|
||||
result,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user