Skip to content

Commit 436c63a

Browse files
pmorchjohnbartholomew
authored andcommitted
Add test case for google#942 std.parseYaml and block (pipe)
std.parseYaml() doesn't handle this properly: f1: | a b
1 parent 4003c4d commit 436c63a

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

test_suite/stdlib.jsonnet

+10
Original file line numberDiff line numberDiff line change
@@ -1500,6 +1500,16 @@ std.assertEqual(
15001500
|||
15011501
), [1, 2, 3]
15021502
) &&
1503+
std.assertEqual(
1504+
std.parseYaml(
1505+
|||
1506+
f1: |
1507+
a
1508+
b
1509+
f2: "a\nb\n"
1510+
|||
1511+
), { f1: 'a\nb\n', f2: 'a\nb\n' }
1512+
) &&
15031513

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

0 commit comments

Comments
 (0)