Emi
40aac6602e
Normalize space in expected output of unicode_silly ( #412 )
2024-12-02 00:06:46 -08:00
Emi
073d07748a
[tests] [bug] test unicode_silly's input data is a .kd file ( #410 )
2024-12-01 15:26:00 -08:00
Kat Marchán
8b2a019998
merge kdl-v2 branch into main
2024-11-29 00:11:01 -08:00
Kat Marchán
90e22bc789
[v2] more predictable slashdash ( #407 )
...
Fixes: https://github.com/kdl-org/kdl/issues/401
2024-11-28 22:53:42 -08:00
Kat Marchán
1588b1f5fd
get rid of syntactically significant unicode equals signs ( #400 )
...
Fixes : #399
2024-11-28 22:39:19 -08:00
Samuel Giddins
d8d583a45e
Create test for unterminated_empty_node ( #405 )
2024-11-07 11:28:06 -08:00
Bram Gotink
9e7b958f0c
Ensure spec allows slashdash right after node separator ( #382 )
2024-02-18 13:18:50 -08:00
Kat Marchán
dadcfdf2ae
Update tests/test_cases/expected_kdl/multiline_raw_string_indented.kdl
...
Co-authored-by: Dani Smith <danini@hey.com>
2024-02-15 12:03:25 -08:00
Kat Marchán
2fcf6d42d3
Update tests/test_cases/expected_kdl/multiline_string_indented.kdl
...
Co-authored-by: Dani Smith <danini@hey.com>
2024-02-15 12:03:18 -08:00
Kat Marchán
fa816ca6df
add floats
...
Fixes: https://github.com/kdl-org/kdl/issues/374
2024-02-12 23:17:52 -08:00
Kat Marchán
631ec14059
allow /- at the very beginning of a document
2024-02-12 23:00:50 -08:00
Kat Marchán
522ce8591e
clarify multi-line strings further
2024-02-07 11:33:47 -08:00
Corey Powell
29495006bc
KDL V2 Test Fixes ( #368 )
...
* Add newlines to some of the bare ident tests that were missing them
* eof_after_escape.kdl is valid according to spec
2024-01-06 14:50:37 -08:00
Tab Atkins-Bittner
af91cc6319
Add tests for .1 and general 'ident ambiguous with a number' cases.
2024-01-04 11:12:10 -08:00
Tab Atkins-Bittner
de37e11a29
Comments are now allowed in and around types (along with other types of ws)
2023-12-26 14:58:49 -08:00
Tab Atkins-Bittner
094a615f82
Tests are invalid (contained U+FFFD, not surrogates) and are in general untestable since you can't represent surrogates in UTF-8, which KDL must be encoded in.
2023-12-26 14:36:48 -08:00
Tab Atkins-Bittner
1294f9733d
Fix tests about # in an ident string
2023-12-26 14:31:49 -08:00
Tab Atkins-Bittner
935d054d13
Fix more multiline tests
2023-12-26 14:28:25 -08:00
Tab Atkins-Bittner
f02ba59c0c
Make multi-line ws prefix determined by the last line.
2023-12-26 14:19:45 -08:00
Kat Marchán
d53d99ff2e
test fixes
2023-12-17 13:37:37 -08:00
Kat Marchán
511ab6b6ff
missed a spot
2023-12-17 10:01:42 -08:00
Kat Marchán
90cd0b1bb9
make unicodey equals signs valid property assignment characters
2023-12-16 16:09:13 -08:00
Kat Marchán
b51859edf3
update tests
...
Fixes: https://github.com/kdl-org/kdl/issues/359
2023-12-16 14:44:32 -08:00
Kat Marchán
7790505bf9
Merge branch 'main' into kdl-v2
2023-12-12 23:44:10 -08:00
Hannah Kolbeck
6bab316b0f
Remove credit from test suite README ( #304 )
2022-09-29 09:50:14 -07:00
Bram Gotink
d437cf228b
Add test for empty single-line comment ( #292 )
2022-09-02 07:37:10 -07:00
Nathan West
825ff2c17d
Add escaped whitespace to KDL strings ( #290 )
...
* Add escaped whitespace to KDL spec
* Add test cases for escaped whitespace
* Spelling error
2022-08-31 21:49:01 -07:00
Bram Gotink
337bd1bccf
Update expected output of test with changed input ( #289 )
2022-08-30 10:44:44 -07:00
Bram Gotink
ffeea8e5aa
Use forward slash in solidus-escape test ( #288 )
2022-08-30 08:11:51 -07:00
Kat Marchán
f38edc765d
add failing test for removed solidus escape
2022-08-28 13:28:47 -07:00
Danielle Smith
910f6e90a7
Do not escape / (Solidus, Forwardslash) ( #197 )
2022-08-28 12:59:26 -07:00
Tab Atkins Jr
05d16e0597
Per #223 discussion, this *should* be a parse error. ( #226 )
...
Fixes : #223
2021-10-07 08:01:18 -07:00
Tab Atkins Jr
93cc6724f2
Verify that a slash-dashed prop doesn't shadow a previous prop of the same name ( #227 )
2021-10-06 15:01:49 -07:00
Tab Atkins Jr
3f293ff01d
Empty children aren't reflected in the data model. ( #219 )
...
Fixes: https://github.com/kdl-org/kdl/issues/218
2021-10-05 20:27:28 -07:00
Tab Atkins Jr
b22ed4b1b0
Add missing expected file ( #217 )
...
Per the grammar (`decimal := integer ('.' [0-9] [0-9_]*)? exponent?`), underscores in the fraction part should be allowed (as in `node 1.0_2`, the contents of the corresponding input file), but there was no expected_kdl file for this test case, indicating it's supposed to be a parse failure.
I'm assuming this was a mistake, since underscores in the fraction part make complete sense (and are allowed in the other two parts of a decimal number).
2021-10-04 17:47:24 -07:00
Danielle Smith
5a2f4969fe
fix: non-decimal test output according to docs ( #196 )
2021-09-27 17:44:21 -07:00
Danielle Smith
05af2fb657
fix: do not escape solidus (forwardslash) in test ( #198 )
2021-09-27 17:42:30 -07:00
Ben Reinhart
24faa6b75c
tests: add more coverage for keywords ( #189 )
2021-09-20 19:01:48 -07:00
Hannah Kolbeck
f59ca2476a
Add type annotation tests from kdl4j and tweak unusual char in quoted id test ( #181 )
...
Co-authored-by: Hannah Kolbeck <hannah.kolbeck@streem.com>
2021-09-19 08:11:19 -07:00
Ben Reinhart
8ca18fec0a
tests: ensure output of illegal ident is quoted ( #178 )
2021-09-17 13:33:56 -07:00
Dave Anderson
0bbe723eb5
tests: adjust bare identifier inputs to match spec. ( #168 )
...
/ is not a valid identifier character. This updates
unusual_chars_in_bare_id.kdl to only include unusual but valid
identifier characters, and adds separate invalid input tests
for non-identifier characters.
Fixes #166
2021-09-16 10:46:22 -07:00
Chris Babcock
8ae4ae648e
Preserve duplicate nodes ( #167 )
...
Fixes: https://github.com/kdl-org/kdl/issues/165
2021-09-16 01:46:26 -07:00
Kat Marchán
0a3e498e16
clarify ordering stuff
2021-08-31 23:00:39 -07:00
Kat Marchán
762d20ed3b
add attribution for test suite
2021-08-31 22:34:29 -07:00
Kat Marchán
83c24e48a4
add a note about what to do if a test fails (or wrongly succeeds)
2021-08-31 22:31:16 -07:00
Kat Marchán
fd478c29c7
bring over test suite from kdl4j ( #119 )
2021-08-31 22:25:11 -07:00