Unverified Commit 80a4fc03 authored by Martin Weinelt's avatar Martin Weinelt
Browse files

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

parent 29fbef9a
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -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
    '';
  };