-
Notifications
You must be signed in to change notification settings - Fork 68
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
Fix bug in assertTableEq #93
Conversation
Fix bug in assertTableEq
Glad to help :-) I note Penlight for future uses (since my recursive comparison is quite crude, will break for too deeply-nested tables, but that's good enough for now). |
I think there is nothing stopping us from using any other test suit and any other suggestions to improve tester is more than welcome too. But at this point, I think completely switching to an outside test suite is not the right thing to do. We have only been supporting luarocks packages for a short while. I want to see how that works out for many cases before making torch and nn depend on anything else. |
I agree, let's take more time. But eventually we won't have a choice: a On Sunday, December 9, 2012, koray kavukcuoglu wrote:
Clement |
Hi guys
assertTableEq fails to distinguish between table A and B if the A is shorter than B but matches on all its terms. The attached patch uses recursive comparison by double-inclusion to make sure the two tables actually match (recursively).
I also included tests to avoid regressions.