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

Use Jest to automatically test the program #38

Closed
calpa opened this issue Dec 18, 2019 · 4 comments
Closed

Use Jest to automatically test the program #38

calpa opened this issue Dec 18, 2019 · 4 comments
Labels
contributor-tools Info/tool for contributors

Comments

@calpa
Copy link

calpa commented Dec 18, 2019

Instead of checking the error by human, we can use Jest to test automatically.

For example:

吾有一數。曰三。名之曰「甲」。

This sentence should init a variable call ,and it is 3

@LingDong-
Copy link
Member

Great idea, now that pull requests and new examples proposed all the time, automated testing would be very helpful.
I'm not very familiar with Jest, if you could help out and make a pull request I'd really appreciate it. Otherwise I can look into Jest and and see what I can do.
Thanks!

@LingDong-
Copy link
Member

LingDong- commented Dec 18, 2019

timeswind kindly submitted some tests using Mocha: https://github.com/LingDong-/wenyan-lang/pull/61

As I don't have a preference, perhaps let's go with Mocha, unless someone can think of some fundamental superiority for Jest ;)

@secminhr
Copy link

何不試以文言測之?

@antfu
Copy link
Member

antfu commented Dec 30, 2019

Closing now. Since we are already using Mocha for testing. If you got any questions, feel free to reopen it.

@antfu antfu closed this as completed Dec 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contributor-tools Info/tool for contributors
Projects
None yet
Development

No branches or pull requests

4 participants