Added yp2::PlainFile class which reads Unix-style plain text files.
[metaproxy-moved-to-github.git] / src / test_filter_query_rewrite.cpp
index 069d603..4badebe 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: test_filter_query_rewrite.cpp,v 1.3 2006-01-22 00:05:51 marc Exp $
+/* $Id: test_filter_query_rewrite.cpp,v 1.8 2006-01-23 08:23:37 mike Exp $
    Copyright (c) 2005, Index Data.
 
 %LICENSE%
@@ -203,10 +203,18 @@ BOOST_AUTO_UNIT_TEST( test_filter_query_rewrite3 )
             "    <expression>@attr 1=4</expression>\n"
             "    <format>@attr 1=5 @attr 4=1</format>\n"
             "  </regex>\n"
-            "  <regex action='scan'>\n"
+            "  <regex action='scan' stop='1'>\n"
             "    <expression>fish</expression>\n"
             "    <format>mouse</format>\n"
             "  </regex>\n"
+            "  <regex action='all' when='finally'>\n"
+            "    <expression>^</expression>\n"
+            "    <format>@and @attr1=9999 vdb</format>\n"
+            "  </regex>\n"
+            "  <test action='scan'><!-- unit-test for configuration -->\n"
+            "     <in>@attr 1=4 foo</in>\n"
+            "     <out>@attr 1=1034 fish</out>\n"
+            "  </test>\n"
             "</filter>\n"
             ;