Skip to content

Commit

Permalink
tests: update test suite from draft 5
Browse files Browse the repository at this point in the history
  • Loading branch information
zkat committed Nov 29, 2024
1 parent 11e1192 commit bf1a8bb
Show file tree
Hide file tree
Showing 20 changed files with 47 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node 1 3
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node 1 3
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
node foo {
three
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node 1 2
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node 1 3
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node 1 3
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node2
1 change: 1 addition & 0 deletions tests/test_cases/expected_kdl/unicode_silly.kdl
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ノード お名前=ฅ^•ﻌ•^ฅ
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
node /-{
child
} foo {
bar
}
6 changes: 6 additions & 0 deletions tests/test_cases/input/slashdash_multi_line_comment_entry.kdl
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
node 1 /- /*
multi
line
comment
here
*/ 2 3
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node 1 /-/*two*/2 3
10 changes: 10 additions & 0 deletions tests/test_cases/input/slashdash_multiple_child_blocks.kdl
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
node foo /-{
one
} \
/-{
two
} {
three
} /-{
four
}
4 changes: 4 additions & 0 deletions tests/test_cases/input/slashdash_newline_before_children.kdl
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
node 1 2 /-
{
child
}
2 changes: 2 additions & 0 deletions tests/test_cases/input/slashdash_newline_before_entry.kdl
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node 1 /-
2 3
2 changes: 2 additions & 0 deletions tests/test_cases/input/slashdash_newline_before_node.kdl
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/-
node 1 2 3
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node 1 /- // stuff
2 3
3 changes: 3 additions & 0 deletions tests/test_cases/input/slashdash_single_line_comment_node.kdl
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/- // this is a comment
node1
node2
1 change: 1 addition & 0 deletions tests/test_cases/input/unicode_silly.kd
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ノード お名前=ฅ^•ﻌ•^ฅ
1 change: 1 addition & 0 deletions tests/test_cases/input/unterminated_empty_node.kdl
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node {

0 comments on commit bf1a8bb

Please sign in to comment.