Skip to content

Commit

Permalink
Add test case for #942 std.parseYaml and block (pipe)
Browse files Browse the repository at this point in the history
std.parseYaml() doesn't handle this properly:

    f1: |
      a
      b
  • Loading branch information
pmorch authored and johnbartholomew committed Feb 27, 2024
1 parent 4003c4d commit 436c63a
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test_suite/stdlib.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -1500,6 +1500,16 @@ std.assertEqual(
|||
), [1, 2, 3]
) &&
std.assertEqual(
std.parseYaml(
|||
f1: |
a
b
f2: "a\nb\n"
|||
), { f1: 'a\nb\n', f2: 'a\nb\n' }
) &&

std.assertEqual(std.asciiUpper('!@#$%&*()asdfghFGHJKL09876 '), '!@#$%&*()ASDFGHFGHJKL09876 ') &&
std.assertEqual(std.asciiLower('!@#$%&*()asdfghFGHJKL09876 '), '!@#$%&*()asdfghfghjkl09876 ') &&
Expand Down

0 comments on commit 436c63a

Please sign in to comment.