diff options
| author | Sergio Queiroz <sqmedeiros@gmail.com> | 2017-01-03 10:05:35 -0300 |
|---|---|---|
| committer | Sergio Queiroz <sqmedeiros@gmail.com> | 2017-01-03 10:05:35 -0300 |
| commit | 92029acf2072fbbd29271c68e601832f9a7c832d (patch) | |
| tree | 91aba4e3f0951fcd702a09c575456af73c3c8be7 | |
| parent | c6277dabce8428b49ff5df63b515c68a0386d9da (diff) | |
| download | lpeglabel-farthestFail.tar.gz lpeglabel-farthestFail.tar.bz2 lpeglabel-farthestFail.zip | |
Removing tests specific to farthest failure (put them in testlabel.lua)farthestFail
| -rw-r--r-- | testfarthest.lua | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/testfarthest.lua b/testfarthest.lua deleted file mode 100644 index e862d87..0000000 --- a/testfarthest.lua +++ /dev/null | |||
| @@ -1,13 +0,0 @@ | |||
| 1 | local m = require 'lpeglabel' | ||
| 2 | |||
| 3 | function matchPrint(p, s) | ||
| 4 | local r, l, sfail = p:match(s) | ||
| 5 | print("Input:", s) | ||
| 6 | print("Result:", r, l, sfail) | ||
| 7 | end | ||
| 8 | |||
| 9 | |||
| 10 | local p = (m.P"c" + m.P"a") * m.P("b" + m.P"d") + m.P"xxx" | ||
| 11 | p:pcode() | ||
| 12 | matchPrint(p, "ba") | ||
| 13 | |||
