-
Notifications
You must be signed in to change notification settings - Fork 224
Fixed all of the tests/bugs. Test error output improvements. Minor API change. #2
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
Conversation
…diff sets in tests
The test used the year 9999 when calling DiffBisect. int32 can only go up to about the year 2038, thus the date being used could not fit in an int32, but does fit in an int64.
…fInsert was used instead of DiffDelete
…ffEqual. Cleaned up diffCompute func
@sergi Is this still being actively maintained/worked on? |
…terface{} args. max int from math package.
…han rune conversion - all funcs take only string args now
… wasn't being caught. And another patch bug.
…another uncaught return val addcontext bug
Hi @rwcarlsen, Yes, it is still being maintained. I am going through your changes, they look great. I will merge them as soon as possible. Sergi |
I am getting the following after
Do you get the same? |
This is for the timeout test - and it passes on my computer. I suspect it has to do with the fact that the diff algorithm does lots of things in between timeout checks - and my computer may be a bit speedier than yours. We might want to change the assert to be |
I see. In that case, it looks good to me, and I will change that timeout after merging your refactor. Thank you so much for this pull request, I learned a lot of idiomatic Go from it, and it improves my newbie lib code a lot! |
Fixed all of the tests/bugs. Test error output improvements. Minor API change.
This includes changes submitted in pull request #1. My additions: