Commit Graph

25 Commits

Author SHA1 Message Date
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