diff --git a/src/main/java/kdl/objects/KDLNode.java b/src/main/java/kdl/objects/KDLNode.java index 82c29b4..523df71 100644 --- a/src/main/java/kdl/objects/KDLNode.java +++ b/src/main/java/kdl/objects/KDLNode.java @@ -1,14 +1,20 @@ package kdl.objects; -import kdl.print.PrintConfig; -import kdl.print.PrintUtil; - import java.io.IOException; import java.io.Writer; import java.math.BigDecimal; -import java.util.*; +import java.util.ArrayList; +import java.util.Collections; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; import java.util.concurrent.ConcurrentHashMap; import java.util.function.Predicate; +import kdl.print.PrintConfig; + +import static kdl.print.PrintUtil.writeStringQuotedAppropriately; public class KDLNode implements KDLObject { private final String identifier; @@ -69,41 +75,31 @@ public void writeKDL(Writer writer, PrintConfig printConfig) throws IOException void writeKDLPretty(Writer writer, int depth, PrintConfig printConfig) throws IOException { if (type.isPresent()) { writer.write('('); - PrintUtil.writeStringQuotedAppropriately(writer, type.get(), true, printConfig); + writeStringQuotedAppropriately(writer, type.get(), true, printConfig); writer.write(')'); } - PrintUtil.writeStringQuotedAppropriately(writer, identifier, true, printConfig); - if (!args.isEmpty() || !props.isEmpty() || child.isPresent()) { - writer.write(' '); - } + writeStringQuotedAppropriately(writer, identifier, true, printConfig); - for (int i = 0; i < this.args.size(); i++) { - final KDLValue value = this.args.get(i); - if (!(value instanceof KDLNull) || printConfig.shouldPrintNullArgs()) { - value.writeKDL(writer, printConfig); - if (i < this.args.size() - 1 || !props.isEmpty() || child.isPresent()) { - writer.write(' '); - } - } - } + for (var value : this.args) { + if (!(value instanceof KDLNull) || printConfig.shouldPrintNullArgs()) { + writer.write(' '); + value.writeKDL(writer, printConfig); + } + } - final ArrayList keys = new ArrayList<>(props.keySet()); - for (int i = 0; i < keys.size(); i++) { - final KDLValue value = props.get(keys.get(i)); - if (!(value instanceof KDLNull) || printConfig.shouldPrintNullProps()) { - PrintUtil.writeStringQuotedAppropriately(writer, keys.get(i), true, printConfig); - writer.write('='); - value.writeKDL(writer, printConfig); - if (i < keys.size() - 1 || child.isPresent()) { - writer.write(' '); - } - } - } + for (var entry : props.entrySet()) { + if (!(entry.getValue() instanceof KDLNull) || printConfig.shouldPrintNullProps()) { + writer.write(' '); + writeStringQuotedAppropriately(writer, entry.getKey(), true, printConfig); + writer.write('='); + entry.getValue().writeKDL(writer, printConfig); + } + } if (child.isPresent()) { if (!child.get().getNodes().isEmpty() || printConfig.shouldPrintEmptyChildren()) { - writer.write('{'); + writer.write(" {"); writer.write(printConfig.getNewline()); child.get().writeKDL(writer, depth + 1, printConfig); for (int i = 0; i < printConfig.getIndent() * depth; i++) { diff --git a/src/test/java/kdl/RoundTripTest.java b/src/test/java/kdl/RoundTripTest.java index 0ff2ff6..24e7458 100644 --- a/src/test/java/kdl/RoundTripTest.java +++ b/src/test/java/kdl/RoundTripTest.java @@ -64,6 +64,8 @@ static List inputs() throws IOException { private static final Path EXPECTED_FOLDER = Paths.get("src/test/resources/test_cases/expected_kdl"); private static final PrintConfig PRINT_CONFIG = PrintConfig.builder() .setEscapeLinespace(true) + .setRespectRadix(false) + .setPrintEmptyChildren(false) .build(); } diff --git a/src/test/resources/test_cases/expected_kdl/all_escapes.kdl b/src/test/resources/test_cases/expected_kdl/all_escapes.kdl index 024cda2..c25f434 100644 --- a/src/test/resources/test_cases/expected_kdl/all_escapes.kdl +++ b/src/test/resources/test_cases/expected_kdl/all_escapes.kdl @@ -1 +1 @@ -node "\"\\\b\f\n\r\t" +node "\"\\/\b\f\n\r\t" diff --git a/src/test/resources/test_cases/expected_kdl/arg_hex_type.kdl b/src/test/resources/test_cases/expected_kdl/arg_hex_type.kdl index ec44f6c..b1a494a 100644 --- a/src/test/resources/test_cases/expected_kdl/arg_hex_type.kdl +++ b/src/test/resources/test_cases/expected_kdl/arg_hex_type.kdl @@ -1 +1 @@ -node (type)0x10 +node (type)16 diff --git a/src/test/resources/test_cases/expected_kdl/binary.kdl b/src/test/resources/test_cases/expected_kdl/binary.kdl index 5d111b9..d14213e 100644 --- a/src/test/resources/test_cases/expected_kdl/binary.kdl +++ b/src/test/resources/test_cases/expected_kdl/binary.kdl @@ -1 +1 @@ -node 0b10 +node 2 diff --git a/src/test/resources/test_cases/expected_kdl/binary_trailing_underscore.kdl b/src/test/resources/test_cases/expected_kdl/binary_trailing_underscore.kdl index 5d111b9..d14213e 100644 --- a/src/test/resources/test_cases/expected_kdl/binary_trailing_underscore.kdl +++ b/src/test/resources/test_cases/expected_kdl/binary_trailing_underscore.kdl @@ -1 +1 @@ -node 0b10 +node 2 diff --git a/src/test/resources/test_cases/expected_kdl/binary_underscore.kdl b/src/test/resources/test_cases/expected_kdl/binary_underscore.kdl index 5d111b9..d14213e 100644 --- a/src/test/resources/test_cases/expected_kdl/binary_underscore.kdl +++ b/src/test/resources/test_cases/expected_kdl/binary_underscore.kdl @@ -1 +1 @@ -node 0b10 +node 2 diff --git a/src/test/resources/test_cases/expected_kdl/empty_child.kdl b/src/test/resources/test_cases/expected_kdl/empty_child.kdl index a166b33..64f5a0a 100644 --- a/src/test/resources/test_cases/expected_kdl/empty_child.kdl +++ b/src/test/resources/test_cases/expected_kdl/empty_child.kdl @@ -1,2 +1 @@ -node { -} +node diff --git a/src/test/resources/test_cases/expected_kdl/empty_child_different_lines.kdl b/src/test/resources/test_cases/expected_kdl/empty_child_different_lines.kdl index a166b33..64f5a0a 100644 --- a/src/test/resources/test_cases/expected_kdl/empty_child_different_lines.kdl +++ b/src/test/resources/test_cases/expected_kdl/empty_child_different_lines.kdl @@ -1,2 +1 @@ -node { -} +node diff --git a/src/test/resources/test_cases/expected_kdl/empty_child_same_line.kdl b/src/test/resources/test_cases/expected_kdl/empty_child_same_line.kdl index a166b33..64f5a0a 100644 --- a/src/test/resources/test_cases/expected_kdl/empty_child_same_line.kdl +++ b/src/test/resources/test_cases/expected_kdl/empty_child_same_line.kdl @@ -1,2 +1 @@ -node { -} +node diff --git a/src/test/resources/test_cases/expected_kdl/empty_child_whitespace.kdl b/src/test/resources/test_cases/expected_kdl/empty_child_whitespace.kdl index a166b33..64f5a0a 100644 --- a/src/test/resources/test_cases/expected_kdl/empty_child_whitespace.kdl +++ b/src/test/resources/test_cases/expected_kdl/empty_child_whitespace.kdl @@ -1,2 +1 @@ -node { -} +node diff --git a/src/test/resources/test_cases/expected_kdl/escline_comment_node.kdl b/src/test/resources/test_cases/expected_kdl/escline_comment_node.kdl deleted file mode 100644 index 1c5b5f3..0000000 --- a/src/test/resources/test_cases/expected_kdl/escline_comment_node.kdl +++ /dev/null @@ -1,2 +0,0 @@ -node1 -node2 diff --git a/src/test/resources/test_cases/expected_kdl/false_prefix_in_bare_id.kdl b/src/test/resources/test_cases/expected_kdl/false_prefix_in_bare_id.kdl new file mode 100644 index 0000000..cd962c4 --- /dev/null +++ b/src/test/resources/test_cases/expected_kdl/false_prefix_in_bare_id.kdl @@ -0,0 +1 @@ +false_id diff --git a/src/test/resources/test_cases/expected_kdl/false_prefix_in_prop_key.kdl b/src/test/resources/test_cases/expected_kdl/false_prefix_in_prop_key.kdl new file mode 100644 index 0000000..2d29843 --- /dev/null +++ b/src/test/resources/test_cases/expected_kdl/false_prefix_in_prop_key.kdl @@ -0,0 +1 @@ +node false_id=1 diff --git a/src/test/resources/test_cases/expected_kdl/hex.kdl b/src/test/resources/test_cases/expected_kdl/hex.kdl index 6d1eba2..bcbc7ff 100644 --- a/src/test/resources/test_cases/expected_kdl/hex.kdl +++ b/src/test/resources/test_cases/expected_kdl/hex.kdl @@ -1 +1 @@ -node 0xabcdef1234567890 +node 12379813812177893520 diff --git a/src/test/resources/test_cases/expected_kdl/hex_int.kdl b/src/test/resources/test_cases/expected_kdl/hex_int.kdl index b552b7b..f8dcee1 100644 --- a/src/test/resources/test_cases/expected_kdl/hex_int.kdl +++ b/src/test/resources/test_cases/expected_kdl/hex_int.kdl @@ -1 +1 @@ -node 0xabcdef0123456789abcdef +node 207698809136909011942886895 diff --git a/src/test/resources/test_cases/expected_kdl/hex_int_underscores.kdl b/src/test/resources/test_cases/expected_kdl/hex_int_underscores.kdl index b18a9c3..78f3ce0 100644 --- a/src/test/resources/test_cases/expected_kdl/hex_int_underscores.kdl +++ b/src/test/resources/test_cases/expected_kdl/hex_int_underscores.kdl @@ -1 +1 @@ -node 0xabcdef0123 +node 737894400291 diff --git a/src/test/resources/test_cases/expected_kdl/hex_leading_zero.kdl b/src/test/resources/test_cases/expected_kdl/hex_leading_zero.kdl index c05ae7c..d20bd7d 100644 --- a/src/test/resources/test_cases/expected_kdl/hex_leading_zero.kdl +++ b/src/test/resources/test_cases/expected_kdl/hex_leading_zero.kdl @@ -1 +1 @@ -node 0x1 +node 1 diff --git a/src/test/resources/test_cases/expected_kdl/leading_zero_binary.kdl b/src/test/resources/test_cases/expected_kdl/leading_zero_binary.kdl index 2a38fed..d20bd7d 100644 --- a/src/test/resources/test_cases/expected_kdl/leading_zero_binary.kdl +++ b/src/test/resources/test_cases/expected_kdl/leading_zero_binary.kdl @@ -1 +1 @@ -node 0b1 +node 1 diff --git a/src/test/resources/test_cases/expected_kdl/leading_zero_oct.kdl b/src/test/resources/test_cases/expected_kdl/leading_zero_oct.kdl index 9585c83..d20bd7d 100644 --- a/src/test/resources/test_cases/expected_kdl/leading_zero_oct.kdl +++ b/src/test/resources/test_cases/expected_kdl/leading_zero_oct.kdl @@ -1 +1 @@ -node 0o1 +node 1 diff --git a/src/test/resources/test_cases/expected_kdl/null_prefix_in_bare_id.kdl b/src/test/resources/test_cases/expected_kdl/null_prefix_in_bare_id.kdl new file mode 100644 index 0000000..9e0cf15 --- /dev/null +++ b/src/test/resources/test_cases/expected_kdl/null_prefix_in_bare_id.kdl @@ -0,0 +1 @@ +null_id diff --git a/src/test/resources/test_cases/expected_kdl/null_prefix_in_prop_key.kdl b/src/test/resources/test_cases/expected_kdl/null_prefix_in_prop_key.kdl new file mode 100644 index 0000000..1e1472b --- /dev/null +++ b/src/test/resources/test_cases/expected_kdl/null_prefix_in_prop_key.kdl @@ -0,0 +1 @@ +node null_id=1 diff --git a/src/test/resources/test_cases/expected_kdl/octal.kdl b/src/test/resources/test_cases/expected_kdl/octal.kdl index 68bc955..225217b 100644 --- a/src/test/resources/test_cases/expected_kdl/octal.kdl +++ b/src/test/resources/test_cases/expected_kdl/octal.kdl @@ -1 +1 @@ -node 0o76543210 +node 16434824 diff --git a/src/test/resources/test_cases/expected_kdl/parse_all_arg_types.kdl b/src/test/resources/test_cases/expected_kdl/parse_all_arg_types.kdl index 3d1f3f7..2e8552c 100644 --- a/src/test/resources/test_cases/expected_kdl/parse_all_arg_types.kdl +++ b/src/test/resources/test_cases/expected_kdl/parse_all_arg_types.kdl @@ -1 +1 @@ -node 1 1.0 1.0E+10 1.0E-10 0x1 0o7 0b10 "arg" "arg\\\\" true false null +node 1 1.0 1.0E+10 1.0E-10 1 7 2 "arg" "arg\\\\" true false null diff --git a/src/test/resources/test_cases/expected_kdl/prop_hex_type.kdl b/src/test/resources/test_cases/expected_kdl/prop_hex_type.kdl index d819d6a..05bef6f 100644 --- a/src/test/resources/test_cases/expected_kdl/prop_hex_type.kdl +++ b/src/test/resources/test_cases/expected_kdl/prop_hex_type.kdl @@ -1 +1 @@ -node key=(type)0x10 +node key=(type)16 diff --git a/src/test/resources/test_cases/expected_kdl/slashdash_node_in_child.kdl b/src/test/resources/test_cases/expected_kdl/slashdash_node_in_child.kdl index 56e0831..f50c4f2 100644 --- a/src/test/resources/test_cases/expected_kdl/slashdash_node_in_child.kdl +++ b/src/test/resources/test_cases/expected_kdl/slashdash_node_in_child.kdl @@ -1,2 +1 @@ -node1 { -} +node1 diff --git a/src/test/resources/test_cases/expected_kdl/slashdash_repeated_prop.kdl b/src/test/resources/test_cases/expected_kdl/slashdash_repeated_prop.kdl new file mode 100644 index 0000000..82c6972 --- /dev/null +++ b/src/test/resources/test_cases/expected_kdl/slashdash_repeated_prop.kdl @@ -0,0 +1 @@ +node arg="correct" diff --git a/src/test/resources/test_cases/expected_kdl/trailing_underscore_hex.kdl b/src/test/resources/test_cases/expected_kdl/trailing_underscore_hex.kdl index 5d6cf28..f426d4d 100644 --- a/src/test/resources/test_cases/expected_kdl/trailing_underscore_hex.kdl +++ b/src/test/resources/test_cases/expected_kdl/trailing_underscore_hex.kdl @@ -1 +1 @@ -node 0x123abc +node 1194684 diff --git a/src/test/resources/test_cases/expected_kdl/trailing_underscore_octal.kdl b/src/test/resources/test_cases/expected_kdl/trailing_underscore_octal.kdl index 0e653f9..9152a92 100644 --- a/src/test/resources/test_cases/expected_kdl/trailing_underscore_octal.kdl +++ b/src/test/resources/test_cases/expected_kdl/trailing_underscore_octal.kdl @@ -1 +1 @@ -node 0o123 +node 83 diff --git a/src/test/resources/test_cases/expected_kdl/true_prefix_in_bare_id.kdl b/src/test/resources/test_cases/expected_kdl/true_prefix_in_bare_id.kdl new file mode 100644 index 0000000..49c9d0d --- /dev/null +++ b/src/test/resources/test_cases/expected_kdl/true_prefix_in_bare_id.kdl @@ -0,0 +1 @@ +true_id diff --git a/src/test/resources/test_cases/expected_kdl/true_prefix_in_prop_key.kdl b/src/test/resources/test_cases/expected_kdl/true_prefix_in_prop_key.kdl new file mode 100644 index 0000000..2af7a1c --- /dev/null +++ b/src/test/resources/test_cases/expected_kdl/true_prefix_in_prop_key.kdl @@ -0,0 +1 @@ +node true_id=1 diff --git a/src/test/resources/test_cases/expected_kdl/underscore_in_octal.kdl b/src/test/resources/test_cases/expected_kdl/underscore_in_octal.kdl index 94f0c85..f4f6039 100644 --- a/src/test/resources/test_cases/expected_kdl/underscore_in_octal.kdl +++ b/src/test/resources/test_cases/expected_kdl/underscore_in_octal.kdl @@ -1 +1 @@ -node 0o1234567 +node 342391 diff --git a/src/test/resources/test_cases/input/all_escapes.kdl b/src/test/resources/test_cases/input/all_escapes.kdl index 024cda2..5bb1dc3 100644 --- a/src/test/resources/test_cases/input/all_escapes.kdl +++ b/src/test/resources/test_cases/input/all_escapes.kdl @@ -1 +1 @@ -node "\"\\\b\f\n\r\t" +node "\"\\\/\b\f\n\r\t" diff --git a/src/test/resources/test_cases/input/backslash_in_bare_id.kdl b/src/test/resources/test_cases/input/backslash_in_bare_id.kdl index 46013ce..5615277 100644 --- a/src/test/resources/test_cases/input/backslash_in_bare_id.kdl +++ b/src/test/resources/test_cases/input/backslash_in_bare_id.kdl @@ -1 +1 @@ -foo123\bar "weeee" \ No newline at end of file +foo123\bar "weeee" diff --git a/src/test/resources/test_cases/input/brackets_in_bare_id.kdl b/src/test/resources/test_cases/input/brackets_in_bare_id.kdl index 6588345..b0d39c5 100644 --- a/src/test/resources/test_cases/input/brackets_in_bare_id.kdl +++ b/src/test/resources/test_cases/input/brackets_in_bare_id.kdl @@ -1 +1 @@ -foo123{bar}foo "weeee" \ No newline at end of file +foo123{bar}foo "weeee" diff --git a/src/test/resources/test_cases/input/chevrons_in_bare_id.kdl b/src/test/resources/test_cases/input/chevrons_in_bare_id.kdl index dbec399..4b6610e 100644 --- a/src/test/resources/test_cases/input/chevrons_in_bare_id.kdl +++ b/src/test/resources/test_cases/input/chevrons_in_bare_id.kdl @@ -1 +1 @@ -foo123foo "weeee" \ No newline at end of file +foo123foo "weeee" diff --git a/src/test/resources/test_cases/input/comma_in_bare_id.kdl b/src/test/resources/test_cases/input/comma_in_bare_id.kdl index 8a6964f..656df91 100644 --- a/src/test/resources/test_cases/input/comma_in_bare_id.kdl +++ b/src/test/resources/test_cases/input/comma_in_bare_id.kdl @@ -1 +1 @@ -foo123,bar "weeee" \ No newline at end of file +foo123,bar "weeee" diff --git a/src/test/resources/test_cases/input/crlf_between_nodes.kdl b/src/test/resources/test_cases/input/crlf_between_nodes.kdl index 4ca16e5..4d9cb21 100644 --- a/src/test/resources/test_cases/input/crlf_between_nodes.kdl +++ b/src/test/resources/test_cases/input/crlf_between_nodes.kdl @@ -1,2 +1,2 @@ -node1 +node1 node2 \ No newline at end of file diff --git a/src/test/resources/test_cases/input/escline_comment_node.kdl b/src/test/resources/test_cases/input/escline_comment_node.kdl deleted file mode 100644 index 030c245..0000000 --- a/src/test/resources/test_cases/input/escline_comment_node.kdl +++ /dev/null @@ -1,3 +0,0 @@ -node1 - \// hey - node2 \ No newline at end of file diff --git a/src/test/resources/test_cases/input/false_prefix_in_bare_id.kdl b/src/test/resources/test_cases/input/false_prefix_in_bare_id.kdl new file mode 100644 index 0000000..cd962c4 --- /dev/null +++ b/src/test/resources/test_cases/input/false_prefix_in_bare_id.kdl @@ -0,0 +1 @@ +false_id diff --git a/src/test/resources/test_cases/input/false_prefix_in_prop_key.kdl b/src/test/resources/test_cases/input/false_prefix_in_prop_key.kdl new file mode 100644 index 0000000..2d29843 --- /dev/null +++ b/src/test/resources/test_cases/input/false_prefix_in_prop_key.kdl @@ -0,0 +1 @@ +node false_id=1 diff --git a/src/test/resources/test_cases/input/false_prop_key.kdl b/src/test/resources/test_cases/input/false_prop_key.kdl new file mode 100644 index 0000000..a032c0b --- /dev/null +++ b/src/test/resources/test_cases/input/false_prop_key.kdl @@ -0,0 +1 @@ +node false=1 diff --git a/src/test/resources/test_cases/input/null_prefix_in_bare_id.kdl b/src/test/resources/test_cases/input/null_prefix_in_bare_id.kdl new file mode 100644 index 0000000..9e0cf15 --- /dev/null +++ b/src/test/resources/test_cases/input/null_prefix_in_bare_id.kdl @@ -0,0 +1 @@ +null_id diff --git a/src/test/resources/test_cases/input/null_prefix_in_prop_key.kdl b/src/test/resources/test_cases/input/null_prefix_in_prop_key.kdl new file mode 100644 index 0000000..1e1472b --- /dev/null +++ b/src/test/resources/test_cases/input/null_prefix_in_prop_key.kdl @@ -0,0 +1 @@ +node null_id=1 diff --git a/src/test/resources/test_cases/input/null_prop_key.kdl b/src/test/resources/test_cases/input/null_prop_key.kdl new file mode 100644 index 0000000..6896d42 --- /dev/null +++ b/src/test/resources/test_cases/input/null_prop_key.kdl @@ -0,0 +1 @@ +node null=1 diff --git a/src/test/resources/test_cases/input/only_line_comment_crlf.kdl b/src/test/resources/test_cases/input/only_line_comment_crlf.kdl index b1653b8..fef83a9 100644 --- a/src/test/resources/test_cases/input/only_line_comment_crlf.kdl +++ b/src/test/resources/test_cases/input/only_line_comment_crlf.kdl @@ -1 +1 @@ -// comment +// comment diff --git a/src/test/resources/test_cases/input/parens_in_bare_id.kdl b/src/test/resources/test_cases/input/parens_in_bare_id.kdl index f8b759b..92459d8 100644 --- a/src/test/resources/test_cases/input/parens_in_bare_id.kdl +++ b/src/test/resources/test_cases/input/parens_in_bare_id.kdl @@ -1 +1 @@ -foo123(bar)foo "weeee" \ No newline at end of file +foo123(bar)foo "weeee" diff --git a/src/test/resources/test_cases/input/quote_in_bare_id.kdl b/src/test/resources/test_cases/input/quote_in_bare_id.kdl index f3b0b20..405f763 100644 --- a/src/test/resources/test_cases/input/quote_in_bare_id.kdl +++ b/src/test/resources/test_cases/input/quote_in_bare_id.kdl @@ -1 +1 @@ -foo123"bar "weeee" \ No newline at end of file +foo123"bar "weeee" diff --git a/src/test/resources/test_cases/input/slash_in_bare_id.kdl b/src/test/resources/test_cases/input/slash_in_bare_id.kdl index f44b5d2..1139c88 100644 --- a/src/test/resources/test_cases/input/slash_in_bare_id.kdl +++ b/src/test/resources/test_cases/input/slash_in_bare_id.kdl @@ -1 +1 @@ -foo123/bar "weeee" \ No newline at end of file +foo123/bar "weeee" diff --git a/src/test/resources/test_cases/input/slashdash_repeated_prop.kdl b/src/test/resources/test_cases/input/slashdash_repeated_prop.kdl new file mode 100644 index 0000000..b427175 --- /dev/null +++ b/src/test/resources/test_cases/input/slashdash_repeated_prop.kdl @@ -0,0 +1 @@ +node arg="correct" /- arg="wrong" diff --git a/src/test/resources/test_cases/input/square_bracket_in_bare_id.kdl b/src/test/resources/test_cases/input/square_bracket_in_bare_id.kdl index e193924..2dd54e9 100644 --- a/src/test/resources/test_cases/input/square_bracket_in_bare_id.kdl +++ b/src/test/resources/test_cases/input/square_bracket_in_bare_id.kdl @@ -1 +1 @@ -foo123[bar]foo "weeee" \ No newline at end of file +foo123[bar]foo "weeee" diff --git a/src/test/resources/test_cases/input/trailing_crlf.kdl b/src/test/resources/test_cases/input/trailing_crlf.kdl index aff78f7..64f5a0a 100644 --- a/src/test/resources/test_cases/input/trailing_crlf.kdl +++ b/src/test/resources/test_cases/input/trailing_crlf.kdl @@ -1 +1 @@ -node +node diff --git a/src/test/resources/test_cases/input/true_prefix_in_bare_id.kdl b/src/test/resources/test_cases/input/true_prefix_in_bare_id.kdl new file mode 100644 index 0000000..49c9d0d --- /dev/null +++ b/src/test/resources/test_cases/input/true_prefix_in_bare_id.kdl @@ -0,0 +1 @@ +true_id diff --git a/src/test/resources/test_cases/input/true_prefix_in_prop_key.kdl b/src/test/resources/test_cases/input/true_prefix_in_prop_key.kdl new file mode 100644 index 0000000..2af7a1c --- /dev/null +++ b/src/test/resources/test_cases/input/true_prefix_in_prop_key.kdl @@ -0,0 +1 @@ +node true_id=1 diff --git a/src/test/resources/test_cases/input/true_prop_key.kdl b/src/test/resources/test_cases/input/true_prop_key.kdl new file mode 100644 index 0000000..e88c36f --- /dev/null +++ b/src/test/resources/test_cases/input/true_prop_key.kdl @@ -0,0 +1 @@ +node true=1