diff options
author | Arseny Kapoulkine <arseny.kapoulkine@gmail.com> | 2017-02-11 13:51:39 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-11 13:51:39 -0800 |
commit | 03e4b8de929328eb5cbb031ff535c50396d43bb9 (patch) | |
tree | 0552947207245d263abffb91e1c6b1d92b86e653 /tests/data_fuzz_xpath | |
parent | 02c599f52b8817916405b4263da3616a55f77632 (diff) | |
parent | ec984370fb525d0cbc20b009f69c9c5eaec022a7 (diff) |
Merge pull request #132 from zeux/fuzz
Improve fuzzing support
Diffstat (limited to 'tests/data_fuzz_xpath')
-rw-r--r-- | tests/data_fuzz_xpath/basic.xpath | 1 | ||||
-rw-r--r-- | tests/data_fuzz_xpath/functions.xpath | 1 | ||||
-rw-r--r-- | tests/data_fuzz_xpath/math.xpath | 1 | ||||
-rw-r--r-- | tests/data_fuzz_xpath/path.xpath | 1 | ||||
-rw-r--r-- | tests/data_fuzz_xpath/predicate.xpath | 1 |
5 files changed, 5 insertions, 0 deletions
diff --git a/tests/data_fuzz_xpath/basic.xpath b/tests/data_fuzz_xpath/basic.xpath new file mode 100644 index 0000000..ccbaf23 --- /dev/null +++ b/tests/data_fuzz_xpath/basic.xpath @@ -0,0 +1 @@ +a/b/c
\ No newline at end of file diff --git a/tests/data_fuzz_xpath/functions.xpath b/tests/data_fuzz_xpath/functions.xpath new file mode 100644 index 0000000..ec24b4f --- /dev/null +++ b/tests/data_fuzz_xpath/functions.xpath @@ -0,0 +1 @@ +sum(nodes) + round(concat(//a[translate(@id, 'abc', '012')]))
diff --git a/tests/data_fuzz_xpath/math.xpath b/tests/data_fuzz_xpath/math.xpath new file mode 100644 index 0000000..7f6e968 --- /dev/null +++ b/tests/data_fuzz_xpath/math.xpath @@ -0,0 +1 @@ +1+2*3 div 4 mod 5-6
\ No newline at end of file diff --git a/tests/data_fuzz_xpath/path.xpath b/tests/data_fuzz_xpath/path.xpath new file mode 100644 index 0000000..82cace9 --- /dev/null +++ b/tests/data_fuzz_xpath/path.xpath @@ -0,0 +1 @@ +@*/ancestor::*/near-north/*[4]/@*/preceding::text()
\ No newline at end of file diff --git a/tests/data_fuzz_xpath/predicate.xpath b/tests/data_fuzz_xpath/predicate.xpath new file mode 100644 index 0000000..7161d55 --- /dev/null +++ b/tests/data_fuzz_xpath/predicate.xpath @@ -0,0 +1 @@ +library/nodes[@id=12]/element[@type='translate'][1]
\ No newline at end of file |