summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/test_matching.cc8
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/test_matching.cc b/tests/test_matching.cc
index 768eb55f..7692c05a 100644
--- a/tests/test_matching.cc
+++ b/tests/test_matching.cc
@@ -1,6 +1,6 @@
// test_matching.cc
//
-// Copyright (C) 2008-2009 Daniel Burrows
+// Copyright (C) 2008-2009, 2011 Daniel Burrows
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License as
@@ -797,6 +797,12 @@ namespace
{ "?widen(?false)", "?widen(?false)",
pattern::make_widen(pattern::make_false()) },
+
+ { "~", "?name(\"~\")",
+ pattern::make_name("~") },
+
+ { "abc", "?name(\"abc\")",
+ pattern::make_name("abc") },
};
const int num_test_patterns = sizeof(test_patterns) / sizeof(test_patterns[0]);