From 28d8e4d95fe20474759a2141d74cfb2393aefa14 Mon Sep 17 00:00:00 2001 From: Kyle Maxwell Date: Thu, 19 Mar 2009 18:00:27 -0700 Subject: [PATCH] failing test case for escaped double quotes --- Makefile.am | 1 + Makefile.in | 1 + libtool | 2 +- test/quote.json | 1 + test/quote.let | 8 ++++++++ test/quote.xml | 11 +++++++++++ 6 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 test/quote.json create mode 100644 test/quote.let create mode 100644 test/quote.xml diff --git a/Makefile.am b/Makefile.am index dafb8f6..d90c9b9 100644 --- a/Makefile.am +++ b/Makefile.am @@ -44,4 +44,5 @@ check-am: @echo "yelp-home..."; ./parsley test/yelp-home.let test/yelp-home.html 2>&1 | diff test/yelp-home.json - && echo " success." @echo "cool..."; perl -e 'alarm shift @ARGV; exec @ARGV' 1 ./parsley test/cool.let test/cool.html 2>&1 | diff test/cool.json - && echo " success." @echo "bang..."; ./parsley test/bang.let test/bang.html 2>&1 | diff test/bang.json - && echo " success." + @echo "quote..."; ./parsley test/quote.let test/quote.html 2>&1 | diff test/quote.json - && echo " success." @echo "unbang..."; ./parsley test/unbang.let test/unbang.html 2>&1 | diff test/unbang.json - && echo " success." diff --git a/Makefile.in b/Makefile.in index 394da23..011c616 100644 --- a/Makefile.in +++ b/Makefile.in @@ -744,6 +744,7 @@ check-am: @echo "yelp-home..."; ./parsley test/yelp-home.let test/yelp-home.html 2>&1 | diff test/yelp-home.json - && echo " success." @echo "cool..."; perl -e 'alarm shift @ARGV; exec @ARGV' 1 ./parsley test/cool.let test/cool.html 2>&1 | diff test/cool.json - && echo " success." @echo "bang..."; ./parsley test/bang.let test/bang.html 2>&1 | diff test/bang.json - && echo " success." + @echo "quote..."; ./parsley test/quote.let test/quote.html 2>&1 | diff test/quote.json - && echo " success." @echo "unbang..."; ./parsley test/unbang.let test/unbang.html 2>&1 | diff test/unbang.json - && echo " success." # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. diff --git a/libtool b/libtool index c0137f8..4776016 100755 --- a/libtool +++ b/libtool @@ -2,7 +2,7 @@ # libtool - Provide generalized library-building support services. # Generated automatically by config.status (parsleyc) 1.0 -# Libtool was configured on host kyle-maxwells-macbook.local: +# Libtool was configured on host 111.flood.pivotallabs.com: # NOTE: Changes made to this file will be lost: look at ltmain.sh. # # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, diff --git a/test/quote.json b/test/quote.json new file mode 100644 index 0000000..6e80e47 --- /dev/null +++ b/test/quote.json @@ -0,0 +1 @@ +{ "matches": [ { "a": "no", "b": "no", "c": "no", "d": "no" }, { "a": "no", "b": "noOo", "c": "no", "d": "noOo" }, { "a": "nooo", "b": "nooo", "c": "nooo", "d": "nooo" }, { "a": "no", "b": "noOo", "c": "no", "d": "noOo" }, { "a": "no", "b": "no", "c": "no", "d": "no" }, { "a": "no", "b": "no", "c": "no", "d": "no" } ] } diff --git a/test/quote.let b/test/quote.let new file mode 100644 index 0000000..f937e29 --- /dev/null +++ b/test/quote.let @@ -0,0 +1,8 @@ +{ + "matches(c)": [{ + "a": "regexp:match(., \"no+\")", + "b": "regexp:match(., \"no+\", \"i\")", + "c": "regexp:match(., \"no+\", \"g\")", + "d": "regexp:match(., \"no+\", \"gi\")" + }] +} \ No newline at end of file diff --git a/test/quote.xml b/test/quote.xml new file mode 100644 index 0000000..7ccb114 --- /dev/null +++ b/test/quote.xml @@ -0,0 +1,11 @@ + + + n + no spot no + nO + noOo spot stop + stop nooo + xnoOox + non no n + none +