5function check_firings() {
8 build="ghc -O -ddump-rule-firings LiteralRuleTest.hs"
9 build="$build -i.. -I../include"
10 touch LiteralRuleTest.hs
11 echo -n "Want to see $expected firings of rule $rule... " >&2
12 firings=$($build 2>&1 | grep "Rule fired: $rule\$" | wc -l)
13 rm -f LiteralRuleTest.{o.hi}
15 if [ $firings != $expected ]; then
16 echo "failed, saw $firings" >&2
23check_firings "TEXT literal" 8
24check_firings "TEXT literal UTF8" 7
25check_firings "TEXT empty literal" 4
26# This is broken at the moment. "TEXT literal" rule fires instead.
27#check_firings "TEXT singleton literal" 5
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list