mirror of
https://github.com/nushell/nushell.git
synced 2024-11-22 08:23:24 +01:00
0c656fd276
Reverts nushell/nushell#7448 Some surprising behavior in how we do this. For example: ``` 〉if (true || false) { print "yes!" } else { print "no!" } no! 〉if (true or false) { print "yes!" } else { print "no!" } yes! ``` This means for folks who are using the old `||`, they possibly get the wrong answer once they upgrade. I don't think we can ship with that as it will catch too many people by surprise and just make it easier to write buggy code.
11 lines
195 B
Rust
11 lines
195 B
Rust
mod commands;
|
|
|
|
use nu_test_support::nu;
|
|
|
|
#[test]
|
|
fn doesnt_break_on_utf8() {
|
|
let actual = nu!(cwd: ".", "echo ö");
|
|
|
|
assert_eq!(actual.out, "ö", "'{}' should contain ö", actual.out);
|
|
}
|