Fixed #204, replacing all duplicated spaces (included single tab and tabs) into single space.
I move testBopomofo method from UserphraseModel into a new util BopomofoUtil, IMO, this function is not that related to the model.
And we can create tests for this more easily (without including the main program).
Coverage increased (+0.2%) to 95.082% when pulling 06f65f709c12f21be9adb6bce8455ac1ec0ffb08 on david50407:fix/reduce_spaces_in_bopomofo into 16792669286670d1dfef5589628828e9ea16e619 on chewing:master.
Coverage increased (+0.2%) to 95.082% when pulling 06f65f709c12f21be9adb6bce8455ac1ec0ffb08 on david50407:fix/reduce_spaces_in_bopomofo into 16792669286670d1dfef5589628828e9ea16e619 on chewing:master.
Fixed #204, replacing all duplicated spaces (included single tab and tabs) into single space.
I move
testBopomofo
method fromUserphraseModel
into a new utilBopomofoUtil
, IMO, this function is not that related to the model. And we can create tests for this more easily (without including the main program).cc @jserv @czchen