mirror of
https://github.com/nushell/nushell
synced 2024-12-24 12:03:18 +00:00
test: test on 'to yaml' boolean parsing in spec 1.2
This commit is contained in:
parent
d6c134c98f
commit
0db506921c
1 changed files with 15 additions and 0 deletions
|
@ -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 a new issue