User Tools

Site Tools


mai_automated_test_suite

This is an old revision of the document!


Mai automated test suite

a separate file, testsuite.js, loaded dynamically by Sam.

Sam::cmdTestParse(),

  • loads code dynamically read db, test parse, compare the results, format the output
  • pulled from Noam

Test Noam::parseSyllable()

dict g=o, syllables

  • one test word for each of 28 rules. rules fall into three categories: endings, tones, consonant clusters
  • one test word for each leading consonant
  • one test word for each vowel pattern
  • one test word for each final consonant
  • one test word for each tonemark
  • one test word for each class/tonemark/vowel-length combination
  • all words with rule “excp”

dict g=m, multi-syllable words

dict tlm=m,

  • all words with manual translit

dict cpm=m.

  • all words with manual parse

Test Noam::parseString()

  • strings with punctuation
  • strings with speakers
  • strings with spaces

Test Noam::parseStory()

  • create a special test story that tests all strings and all words
  • no good, too difficult to isolate the errors for diagnosis
mai_automated_test_suite.1663988642.txt.gz · Last modified: 2022/09/23 23:04 by jhagstrand

Except where otherwise noted, content on this wiki is licensed under the following license: Public Domain
Public Domain Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki