sorlok / waitzar

Automatically exported from code.google.com/p/waitzar
Other
0 stars 0 forks source link

New types of "-t" regression tests #170

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Regression testing for keyboards was such a good idea. I can't begin to list 
the number of times I've tweaked the KeyMagic source, then re-run the tests to 
see if this tiny change affected Ayar/Myanmar3, etc. 

That said, we need to be able to tests other types of input and conversions. 
For example, if I want to test Ayar input and Zawgyi output, I have to COPY the 
Ayar test suite and change the encoding. 

There's two main types of tests we'll need.

  1) Encoding tests. (We'll need KeyMagic arrays for this). Something like:
     "မြန်" => ["ျမန္" + "ြမန်" + "jref"]
    ...with the order (Uni->[Zawgyi,Ayar,WinInnwa) defined in the header somewhere.

  2) Roman Input method tests. We should eventually convert the entire "Compatibility checklist" to a test file. This can also be done with arrays:
     "kote" => ["ကုက်" + "ကုဋ်" + "ကုတ်" + "ကုပ်" + "ကုဗ်"]
     ...however, we'll need more, like the ability to represent "space" and arrow keys. We can use arrays on the left for this, I think:
     ["ko" + "1" + "ko"] => ["ကိုယ်" + "ကို"]   #Main window test
     ["ko" + "1" + "ko" + "2"] => "ကိုကို"      #Sentence window test

This will REALLY help when adding a new converter, input method, etc. It can 
probably all be specified in the header params.

Original issue reported on code.google.com by seth.h...@gmail.com on 27 Nov 2010 at 4:43