Added yp2::PlainFile class which reads Unix-style plain text files.
[metaproxy-moved-to-github.git] / src / test_filter_query_rewrite.cpp
index d0fcb7c..4badebe 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: test_filter_query_rewrite.cpp,v 1.6 2006-01-23 08:13:11 mike Exp $
+/* $Id: test_filter_query_rewrite.cpp,v 1.8 2006-01-23 08:23:37 mike Exp $
    Copyright (c) 2005, Index Data.
 
 %LICENSE%
@@ -207,10 +207,14 @@ BOOST_AUTO_UNIT_TEST( test_filter_query_rewrite3 )
             "    <expression>fish</expression>\n"
             "    <format>mouse</format>\n"
             "  </regex>\n"
-            "  <regex action='finally'>\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"
             ;