Commit Graph

38 Commits

Author SHA1 Message Date
Kat Marchán 171bc71f42
Allow node-space after slashdash and add a bunch more slashdash tests (#427)
Fixes: https://github.com/kdl-org/kdl/issues/426
2024-12-10 20:43:58 -08:00
Thomas Jollans 75a0869a6c
Clarify raw single-line string grammar (#425) 2024-12-10 16:45:35 -08:00
Thomas Jollans ee41a76357
Additional test cases for slashdash and multi-line strings (#422) 2024-12-08 09:32:21 -08:00
Thomas Jollans 831ecc1d52
Allow quotes in multi-line strings (#419)
Fixes: https://github.com/kdl-org/kdl/issues/415
2024-12-08 01:07:31 -08:00
Tab Atkins Jr. 29ae90e9f5
Indicate expected-fail tests with a _fail suffix. Fixes #365 (#418)
* Indicate expected-fail tests with a _fail suffix. Fixes #365

* Update the README with directions for formatting failing tests

* Add a lint for failing and orphaned tests.
2024-12-06 15:06:28 -08:00
Kat Marchán eaa6c40693
fix more multiline string tests that were missed before 2024-12-04 13:08:37 -08:00
Kat Marchán 5971e61eda
fix up some multiline string tests 2024-12-04 00:48:43 -08:00
Kat Marchán e7b5ec6bf9
unambiguous multiline strings (#414)
Fixes: https://github.com/kdl-org/kdl/issues/413
2024-12-03 23:44:40 -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 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
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
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 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 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
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
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 fd478c29c7
bring over test suite from kdl4j (#119) 2021-08-31 22:25:11 -07:00