From 1c157cdf7da21f02172088cdc9616e709b51b46b Mon Sep 17 00:00:00 2001 From: Christoph Groth Date: Mon, 24 Mar 2025 17:51:01 +0100 Subject: Initial version --- testdata/a | 24 ++++++++++++++++++++++++ testdata/ancestor | 10 ++++++++++ testdata/b | 26 ++++++++++++++++++++++++++ testdata/expected2 | 43 +++++++++++++++++++++++++++++++++++++++++++ testdata/expected3 | 41 +++++++++++++++++++++++++++++++++++++++++ testdata/tricky | 13 +++++++++++++ 6 files changed, 157 insertions(+) create mode 100644 testdata/a create mode 100644 testdata/ancestor create mode 100644 testdata/b create mode 100644 testdata/expected2 create mode 100644 testdata/expected3 create mode 100644 testdata/tricky (limited to 'testdata') diff --git a/testdata/a b/testdata/a new file mode 100644 index 0000000..42d5016 --- /dev/null +++ b/testdata/a @@ -0,0 +1,24 @@ +: 1:0;b +: 1:0;a +: 1:0;a +: 1:0;a +: 2:0;cc +: 3:0;dd +: 4:0;f +: 5:0;e +: 6:3;g +: 7:3;hh +: 9:0;l +: 9:0;m +: 9:0;nn +: 9:0;o +: 9:0;p +: 9:0;q +: 9:0;t +: 11:0;L +: 12:0;M +: 13:0;NN +: 14:0;O +: 15:0;P +: 16:0;Q +: 19:0;T diff --git a/testdata/ancestor b/testdata/ancestor new file mode 100644 index 0000000..6d6afe2 --- /dev/null +++ b/testdata/ancestor @@ -0,0 +1,10 @@ +: 0:0;a +: 1:0;b +: 2:0;c +: 3:0;d +: 4:0;e +: 5:0;f +: 6:3;g +: 7:3;h +: 8:3;i +: 9:3;j diff --git a/testdata/b b/testdata/b new file mode 100644 index 0000000..61ed43e --- /dev/null +++ b/testdata/b @@ -0,0 +1,26 @@ +: 1:0;b +: 2:0;c +: 3:0;ddd +: 4:0;f +: 5:0;e +: 6:3;g +: 8:3;ii +: 9:3;j +: 9:0;k +: 9:0;m +: 9:0;n +: 9:0;o +: 9:0;q +: 9:0;p +: 9:0;r +: 9:0;r +: 9:0;s +: 10:0;K +: 12:0;M +: 13:0;N +: 14:0;O +: 15:0;Q +: 16:0;P +: 17:0;R +: 17:0;R +: 18:0;S diff --git a/testdata/expected2 b/testdata/expected2 new file mode 100644 index 0000000..60a4031 --- /dev/null +++ b/testdata/expected2 @@ -0,0 +1,43 @@ +: 1:0;b +: 1:0;a +: 1:0;a +: 1:0;a +: 2:0;cc +: 2:0;c +: 3:0;dd +: 3:0;ddd +: 4:0;f +: 5:0;e +: 6:3;g +: 7:3;hh +: 8:3;ii +: 9:0;l +: 9:3;j +: 9:0;m +: 9:0;k +: 9:0;nn +: 9:0;m +: 9:0;o +: 9:0;n +: 9:0;p +: 9:0;o +: 9:0;q +: 9:0;t +: 9:0;p +: 9:0;r +: 9:0;r +: 9:0;s +: 10:0;K +: 11:0;L +: 12:0;M +: 13:0;NN +: 13:0;N +: 14:0;O +: 15:0;P +: 15:0;Q +: 16:0;Q +: 16:0;P +: 17:0;R +: 17:0;R +: 18:0;S +: 19:0;T diff --git a/testdata/expected3 b/testdata/expected3 new file mode 100644 index 0000000..43513b7 --- /dev/null +++ b/testdata/expected3 @@ -0,0 +1,41 @@ +: 1:0;b +: 1:0;a +: 1:0;a +: 1:0;a +: 2:0;cc +: 3:0;dd +: 3:0;ddd +: 4:0;f +: 5:0;e +: 6:3;g +: 7:3;hh +: 8:3;ii +: 9:0;l +: 9:0;m +: 9:0;k +: 9:0;nn +: 9:0;m +: 9:0;o +: 9:0;n +: 9:0;p +: 9:0;o +: 9:0;q +: 9:0;t +: 9:0;p +: 9:0;r +: 9:0;r +: 9:0;s +: 10:0;K +: 11:0;L +: 12:0;M +: 13:0;NN +: 13:0;N +: 14:0;O +: 15:0;P +: 15:0;Q +: 16:0;Q +: 16:0;P +: 17:0;R +: 17:0;R +: 18:0;S +: 19:0;T diff --git a/testdata/tricky b/testdata/tricky new file mode 100644 index 0000000..dd0b842 --- /dev/null +++ b/testdata/tricky @@ -0,0 +1,13 @@ +: 1742639203:0;echo some tricky corner cases: +: 1742639224:0;echo two-line command \\ +line 2 +: 1742639255:0;echo three-line-command \\ +line 2\\ +line 3 ends with a backslash\\ +: 1742639288:0;echo \ * +: 1742639331:0;echo this line ends with three backslashes \\\\ +line 2 +: 1742639341:0;echo backslash followed by a _single_ space \ +: 1742639405:0;echo \\ +: 1111111111:0;echo this looks like a command, but it is a second line +: 1742639433:0;echo -- cgit v1.2.3-74-g4815