summaryrefslogtreecommitdiff
path: root/t/t4018/custom1-pattern
diff options
context:
space:
mode:
authorLibravatar Johannes Sixt <j6t@kdbg.org>2014-03-21 22:07:18 +0100
committerLibravatar Junio C Hamano <gitster@pobox.com>2014-03-21 15:02:57 -0700
commitf1b75fbaf1380e00668f775f27ba8dd52b78a081 (patch)
tree7229343c8f7379ddb7715b01708838f8294bb845 /t/t4018/custom1-pattern
parentt4018: convert java pattern test to the new infrastructure (diff)
downloadtgif-f1b75fbaf1380e00668f775f27ba8dd52b78a081.tar.xz
t4018: convert custom pattern test to the new infrastructure
For the test case "matches to end of line", extend the pattern by a few wildcards so that the pattern captures the "RIGHT" token, which is needed for verification, without mentioning it in the pattern. Signed-off-by: Johannes Sixt <j6t@kdbg.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t4018/custom1-pattern')
-rw-r--r--t/t4018/custom1-pattern17
1 files changed, 17 insertions, 0 deletions
diff --git a/t/t4018/custom1-pattern b/t/t4018/custom1-pattern
new file mode 100644
index 0000000000..e8fd59f884
--- /dev/null
+++ b/t/t4018/custom1-pattern
@@ -0,0 +1,17 @@
+public class Beer
+{
+ int special, RIGHT;
+ public static void main(String args[])
+ {
+ String s=" ";
+ for(int x = 99; x > 0; x--)
+ {
+ System.out.print(x + " bottles of beer on the wall "
+ + x + " bottles of beer\n" // ChangeMe
+ + "Take one down, pass it around, " + (x - 1)
+ + " bottles of beer on the wall.\n");
+ }
+ System.out.print("Go to the store, buy some more,\n"
+ + "99 bottles of beer on the wall.\n");
+ }
+}