mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-21 22:43:01 +00:00
pkgs/lib/formats: test more explicitly for YAML 1.1 compat
This commit is contained in:
parent
29fbef9adb
commit
80a4fc03f0
@ -118,7 +118,7 @@ in runBuildTests {
|
||||
'';
|
||||
};
|
||||
|
||||
yamlAtoms = shouldPass {
|
||||
yaml_1_1Atoms = shouldPass {
|
||||
format = formats.yaml {};
|
||||
input = {
|
||||
null = null;
|
||||
@ -129,6 +129,8 @@ in runBuildTests {
|
||||
attrs.foo = null;
|
||||
list = [ null null ];
|
||||
path = ./formats.nix;
|
||||
no = "no";
|
||||
time = "22:30:00";
|
||||
};
|
||||
expected = ''
|
||||
attrs:
|
||||
@ -138,9 +140,11 @@ in runBuildTests {
|
||||
list:
|
||||
- null
|
||||
- null
|
||||
'no': 'no'
|
||||
'null': null
|
||||
path: ${./formats.nix}
|
||||
str: foo
|
||||
time: '22:30:00'
|
||||
'true': true
|
||||
'';
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user