From c8afa29760b79f58b220f575c8793efd0c460f00 Mon Sep 17 00:00:00 2001 From: mhoffm Date: Tue, 8 Jun 2021 23:06:04 +0200 Subject: [PATCH] initial tests --- test/corpus/blocks.txt | 87 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 87 insertions(+) create mode 100644 test/corpus/blocks.txt diff --git a/test/corpus/blocks.txt b/test/corpus/blocks.txt new file mode 100644 index 0000000..a2beea8 --- /dev/null +++ b/test/corpus/blocks.txt @@ -0,0 +1,87 @@ +================== +basic block +================== + +block_1 { +} + +--- + +(config_file + (body + (block + (identifier)))) + +================== +basic block on one line +================== + +block_1 {} + +--- + +(config_file + (body + (block + (identifier)))) + +================== +block with attribute +================== + +block_1 "strlit1" "strlit2" { + attr1 = "val1" +} + +--- + +(config_file + (body + (block + (identifier) + (string_lit) + (string_lit) + (body + (attribute + (identifier) + (expression + (expr_term + (literal_value + (string_lit))))))))) + +================== +nested block +================== + +block_1 { + block_2 { + } +} + +--- + +(config_file + (body + (block + (identifier) + (body + (block + (identifier)))))) + +================== +nested block on one line +================== + +block_1 { + block_2 {} +} + +--- + +(config_file + (body + (block + (identifier) + (body + (block + (identifier))))))