Skip to content

Write test suites and resolve troubles #39

@onting

Description

@onting

libhanjp has several basic test suites(construct/dispose, simple ASCII string exam).
However, our automata object must be hardly tested before the official release, (and I guess there are still many troubles that are must be fixed).

I'm supposing some test plan ideas, and I am going to handle this task on the 'test' branch in this repo.

  1. AutomataDefeault

    1. Exception value (or boundary value) handling tests will be included
    2. Fifty note conversion test using TEST_F
    3. Some practical string conversion tests ( including batchim) using TEST_P
    4. ic_replace mixed test with above
  2. KeyboardDefault

    Mapping Test

  3. InputContext

    1. Some practical string conversion tests (such as lyrics) using TEST_P

Several cases you MUST aware:

  1. ㅇ + ㅗㅗ -> wo
  2. ㅇ + ㅘ -> wa
  3. Yet-ieung(ㆁ) selects 'w' row
  4. am_push returns -1 for every non-jamos and it dumps the character to dest.
  5. 'ㅇ' + 'ㅑ, ㅠ, ㅛ' -> 'y' row, 'other cho' + 'ㅑ, ㅠ, ㅛ' -> 'i' column.
  6. non-jamos flushs InputContext.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions