Skip to content

Commit 3d6ba73

Browse files
add test case for YAML parsing a version number
This was failing previously (#1014) due to a bug in RapidYAML.
1 parent 436c63a commit 3d6ba73

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test_suite/stdlib.jsonnet

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1510,6 +1510,8 @@ std.assertEqual(
15101510
|||
15111511
), { f1: 'a\nb\n', f2: 'a\nb\n' }
15121512
) &&
1513+
// Issue https://github.com/google/jsonnet/issues/1014
1514+
std.assertEqual(std.parseYaml('version: 1.2.3'), { version: '1.2.3' }) &&
15131515

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

0 commit comments

Comments
 (0)