Skip to content

Commit deac98c

Browse files
add test case for YAML parsing a quoted number (ie, a string)
This was failing previously (#1050) due to a bug in RapidYAML.
1 parent 3d6ba73 commit deac98c

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
@@ -1512,6 +1512,8 @@ std.assertEqual(
15121512
) &&
15131513
// Issue https://github.com/google/jsonnet/issues/1014
15141514
std.assertEqual(std.parseYaml('version: 1.2.3'), { version: '1.2.3' }) &&
1515+
// Issue https://github.com/google/jsonnet/issues/1050
1516+
std.assertEqual(std.type(std.parseYaml('id: "12345"').id), 'string') &&
15151517

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

0 commit comments

Comments
 (0)