Skip to content

Commit

Permalink
failing test case for escaped double quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyle Maxwell committed Mar 20, 2009
1 parent c09092a commit 28d8e4d
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 1 deletion.
1 change: 1 addition & 0 deletions Makefile.am
Expand Up @@ -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."
1 change: 1 addition & 0 deletions Makefile.in
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion libtool
Expand Up @@ -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,
Expand Down
1 change: 1 addition & 0 deletions 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" } ] }
8 changes: 8 additions & 0 deletions 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\")"
}]
}
11 changes: 11 additions & 0 deletions test/quote.xml
@@ -0,0 +1,11 @@
<?xml version="1.0"?>
<a>
<c>n</c>
<c>no spot no</c>
<c>nO</c>
<c>noOo spot stop</c>
<c>stop nooo</c>
<c>xnoOox</c>
<c>non no n</c>
<c>none</c>
</a>

0 comments on commit 28d8e4d

Please sign in to comment.