pkgs/lib/formats: test more explicitly for YAML 1.1 compat

This commit is contained in:
Martin Weinelt
2024-11-09 23:33:37 +01:00
parent 29fbef9adb
commit 80a4fc03f0
+5 -1
View File
@@ -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
'';
};