Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Write test suites and resolve troubles #39

Open
onting opened this issue Nov 7, 2021 · 0 comments
Open

Write test suites and resolve troubles #39

onting opened this issue Nov 7, 2021 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@onting
Copy link
Collaborator

onting commented Nov 7, 2021

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.
@onting onting self-assigned this Nov 7, 2021
@onting onting added the enhancement New feature or request label Nov 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant