lunarmodules / luassert

Assertion library for Lua
MIT License
202 stars 77 forks source link

Fix deepcompre with __pairs #128

Closed o-lim closed 9 years ago

o-lim commented 9 years ago

This uses next, t instead of pairs(t) to iterate through a table so that the __pairs metamethod is not used.

Fixes issue #127.

daurnimator commented 9 years ago

btw, the nil is unnecessary (not harmful though)

DorianGray commented 9 years ago

@o-lim mind removing the unnecessary nils? I'll merge immediately after

o-lim commented 9 years ago

@DorianGray I removed the unnecessary nils.

DorianGray commented 9 years ago

:+1: