Skip to content
This repository has been archived by the owner on Oct 8, 2020. It is now read-only.

Commit

Permalink
Move test cases to actual test suite.
Browse files Browse the repository at this point in the history
  • Loading branch information
eddieantonio committed Nov 1, 2019
1 parent 3462595 commit 5c91294
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
8 changes: 0 additions & 8 deletions src/morphological-fst-rules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -67,22 +67,14 @@ crk-descriptive-analyzer.fomabin: crk-orth.fomabin crk-strict-analyzer.fomabin m
-e "load $(word 2, $^)" \
-e "invert net" \
-e "echo testing strict analyzer with nipâw" \
-e "down nipâw" \
-e "define crkNorm ;" \
-e "load $(word 1, $^)" \
-e "invert net" \
-e "echo testing orthography with nipaw" \
-e "down nipaw" \
-e "echo testing orthography with n'paw" \
-e "down n'paw" \
-e "define crkOrth ;" \
-e "regex crkOrth .o. crkNorm ; " \
-e "down nipaw" \
-e "down nipa" \
-e "down ninipan" \
-e "down neeyu" \
-e "invert net" \
-e "up neeyu" \
-e "save stack $@" \
-s

Expand Down
10 changes: 9 additions & 1 deletion test/run-tests
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,15 @@

require_relative './fst-test-framework'

FST.test('crk-strict-analyzer') do
transduce "nipâ", contains: "nipâw+V+AI+Imp+Imm+2Sg"
transduce "nipâw", contains: "nipâw+V+AI+Ind+Prs+3Sg"
end

FST.test('crk-descriptive-analyzer') do
#transduce "nipa", contains: "nipâw+V+AI+Imp+Imm+2Sg"
transduce "nipa", contains: "nipâw+V+AI+Imp+Imm+2Sg"
transduce "nipâ", contains: "nipâw+V+AI+Imp+Imm+2Sg"
transduce "n'paw", contains: "nipâw+V+AI+Ind+Prs+3Sg"
transduce "nin'pan", contains: "nipâw+V+AI+Ind+Prs+1Sg"
transduce "neeyu", contains: "niya+Pron+Pers+1Sg"
end

0 comments on commit 5c91294

Please sign in to comment.