mirror of
https://github.com/nushell/nushell.git
synced 2024-12-22 15:13:01 +01:00
test: test on 'to yaml' boolean parsing in spec 1.2
This commit is contained in:
parent
d6c134c98f
commit
0db506921c
@ -48,3 +48,18 @@ fn convert_dict_to_yaml_with_integer_floats_key() {
|
||||
assert!(actual.out.contains("2.11"));
|
||||
assert!(actual.err.is_empty());
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn convert_bool_to_yaml_in_yaml_spec_1_2() {
|
||||
let actual = nu!(pipeline(
|
||||
r#"
|
||||
[y n no On OFF True true false] | to yaml
|
||||
"#
|
||||
));
|
||||
|
||||
assert_eq!(
|
||||
actual.out,
|
||||
"- 'y'- 'n'- 'no'- 'On'- 'OFF'- 'True'- true- false"
|
||||
);
|
||||
assert!(actual.err.is_empty());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user