11// Instructions for developers:
22// The actual tests and data can be obtained by doing:
33// `git clone -n https://github.com/toml-lang/toml-test.git vlib/toml/tests/testdata/toml_lang`
4- // `git -C vlib/toml/tests/testdata/toml_lang reset --hard 8bb8d9c
4+ // `git -C vlib/toml/tests/testdata/toml_lang reset --hard 229ce2e
55// See also the CI toml tests
66import os
77import toml
@@ -14,7 +14,8 @@ const test_files_file = os.join_path(test_root, 'files-toml-1.0.0')
1414const hide_oks = os.getenv ('VTEST_HIDE_OK' ) == '1'
1515const no_jq = os.getenv ('VNO_JQ' ) == '1'
1616
17- // Kept for easier handling of future updates to the tests
17+ // Kept for easier lookup and handling of future updates to the tests.
18+ // NOTE: entries in this list are valid TOML that the parser should work with, but currently does not.
1819const valid_exceptions = [
1920 'do_not_remove' ,
2021 'array/open-parent-table.toml' ,
@@ -26,19 +27,25 @@ const valid_exceptions = [
2627 'table/array-implicit-and-explicit-after.toml' ,
2728 'table/array-within-dotted.toml' ,
2829]
29- const jq_not_equal = [
30- 'do_not_remove' ,
31- ]
30+ // NOTE: entries in this list are tests of invalid TOML that should have the parser fail, but currently does not.
3231const invalid_exceptions = [
3332 'do_not_remove' ,
34- 'inline-table/duplicate-key-2.toml' ,
35- 'string/multiline-escape-space-2.toml' ,
33+ 'key/duplicate-keys-06.toml' ,
34+ 'inline-table/duplicate-key-02.toml' ,
35+ 'string/multiline-escape-space-02.toml' ,
36+ 'string/missing-quotes-array.toml' ,
3637 'table/duplicate-key-dotted-array.toml' ,
37- 'table/redefine-2.toml' ,
38+ 'table/append-with-dotted-keys-05.toml' ,
39+ 'table/duplicate-key-03.toml' ,
40+ 'table/duplicate-key-10.toml' ,
41+ 'table/redefine-02.toml' ,
3842]
3943const valid_value_exceptions = [
4044 'do_not_remove' ,
4145]
46+ const jq_not_equal = [
47+ 'do_not_remove' ,
48+ ]
4249
4350const jq = os.find_abs_path_of_executable ('jq' ) or { '' }
4451const compare_work_dir_root = os.join_path (os.vtmp_dir (), 'toml_toml_lang' )
0 commit comments