Skip to content

Commit 7d63fc2

Browse files
author
pivotal
committed
added regression test
1 parent 124baf6 commit 7d63fc2

File tree

4 files changed

+16
-0
lines changed

4 files changed

+16
-0
lines changed

Makefile.am

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ bench:
2929
@echo "craigs..."; ./parsley test/craigs.let test/craigs.html > /dev/null
3030

3131
check-am:
32+
@echo "segfault..."; ./parsley test/segfault.let test/segfault.html 2>&1 | diff test/segfault.json - && echo " success."
3233
@echo "sg_off..."; ./parsley test/sg_off.let test/sg_off.html 2>&1 | diff test/sg_off.json - && echo " success."
3334
@echo "nth-regression..."; ./parsley test/nth-regression.let test/nth-regression.html 2>&1 | diff test/nth-regression.json - && echo " success."
3435
@echo "array-regression..."; ./parsley test/array-regression.let test/array-regression.html 2>&1 | diff test/array-regression.json - && echo " success."

test/segfault.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<html>
2+
<body>
3+
<h1 class="iCIMS_Header_JobTitle">CEO</h1>
4+
</body>
5+
</html>

test/segfault.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{ "jobs": [ { "title": "CEO" } ] }

test/segfault.let

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"jobs": [{
3+
"title" : ".iCIMS_Header_JobTitle",
4+
"description?" : "blah",
5+
"location?" : "blah",
6+
"experience?" : "blah",
7+
"education?" : "blah"
8+
}]
9+
}

0 commit comments

Comments
 (0)