5 runCommand "frog-test" {} ''
6 ${languageMachines.frog}/bin/frog >$out <<EOF
14 echo "Test expectation failed: $@"
18 lines="$(wc -l $out | awk '{print $1}')"
19 test 5 = $lines || expected "Five lines of output"
20 grep "is" $out | grep "zijn" >/dev/null || expected "Stemming works"
21 grep "een" $out | grep "onbep" >/dev/null || expected "Tagging works"
23 deps="$(echo $(awk 'BEGIN { FS = "\t*" } ; {print $1 " -> " $9 "; "}' <$out))"
24 test "1 -> 2; 2 -> 0; 3 -> 4; 4 -> 2; -> ;" = "$deps" || expected "Dependency parsing works"