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

Invalid index in merge rule silently produces uncalled for result. #79

Open
kaldan007 opened this issue Mar 25, 2021 · 0 comments
Open

Comments

@kaldan007
Copy link
Contributor

Input:
- str: "ལས་ཞེས་པ་ནི་ལས་བྱེད་པས་ལས་བྱེད་པ་ཡིན་ནོ།། ལས་བྱེད་པས་ལས་མ་བྱེད་པ་མ་ཡིན་ནོ།།"
- rule: ["ལ"] ["ས་"] 2 + []
output: "ལ ས་ཞེས་པ་ ནི་ལ ས་ བྱེད་པ ས་ ལ ས་བྱེད་པ་ ཡིན་ ནོ །། ལ ས་བྱེད་པ ས་ ལས་མ་ བྱེད་པ་ མ་ ཡིན་ ནོ །།"
expected output:

  • Error msg = No token to join with token number <token_index> found
  • str: "ལ ས་ ཞེས་པ་ ནི་ལ ས་ བྱེད་པ ས་ ལ ས་ བྱེད་པ་ ཡིན་ ནོ །། ལ ས་ བྱེད་པ ས་ ལས་མ་ བྱེད་པ་ མ་ ཡིན་ ནོ །།"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant