diff options
| author | OpportunityLiu <[email protected]> | 2019-07-24 18:36:49 +0800 |
|---|---|---|
| committer | OpportunityLiu <[email protected]> | 2019-07-25 15:25:40 +0800 |
| commit | 9774a017a3baadd3caf3b442f4a22a0bf151d4c9 (patch) | |
| tree | 3df07f70ec715cf98fb3f43e1e8cb89a878a72f8 /tests/test_utils/check.lua | |
| parent | 5727deff9988a851f528308c1c6a941f3cab56f3 (diff) | |
Improve string.serialize; add unit test
Diffstat (limited to 'tests/test_utils/check.lua')
| -rw-r--r-- | tests/test_utils/check.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/test_utils/check.lua b/tests/test_utils/check.lua index bc9ddb6b6..86fa5d6b5 100644 --- a/tests/test_utils/check.lua +++ b/tests/test_utils/check.lua @@ -13,6 +13,9 @@ function _get_rep(value) end function same(actual, expacted) + if actual ~= actual and expacted ~= expacted then + return true, _get_rep(actual), _get_rep(expacted) + end return actual == expacted, _get_rep(actual), _get_rep(expacted) end |
