Improve test writing experiences for devs#502
Conversation
|
I'm wondering whether it is possible to implement batch random testing for the math library. Maybe something like |
|
@statementreply I think it's possible. But I am not very sure if it's a good practice since the test will be unstable. Or we can use some seed-able random approach for that. I will do more research about random testing, please stay tuned. And I like the Thanks! |
|
@antfu I'm thinking about doing random testing on math lib locally. Maybe it's not a good idea for the workflow. Edit: I just realized that I could write the random testing in wenyan (with hacks) if it's going to run locally :/ |
LingDong-
left a comment
There was a problem hiding this comment.
L👍TM, feel free to merge :D
|
Merging now. If anyone comes up with better ideas, feel free to raise up! |
Improve test writing experiences for devs
Refer to: #487
Changes
hanzi2nummore clear and speratenum2hanziandhanzi2numinto different groups.stdlib.calendar.test.jsandstdlib.math.test.js, should be fulfilled in the future.UTCfor calendar testingThe
stdlib.calender.test.jscurrently looks like this: