andresy/torch — pull request #93 by jucor (2012-12-09 18:33:55+00:00)
Title: Fix bug  in assertTableEq

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.