hulu / roca

A command-line tool for running brightscript tests
Apache License 2.0
25 stars 19 forks source link

__roca_deepEquals compare objects with different types as equal #63

Closed vbuchii closed 3 years ago

vbuchii commented 3 years ago

Example:

    m.fit("validate associative arrays", sub()
        expected = { key: "Some value"}
        actual = {}

        m.assert.deepEquals(expected["key"], actual["key"], "'Some value' should not be equal invalid")
   end sub)

Result:

✓ validate associative arrays

Expected:

                error:
                    message: 'Some value' should not be equal invalid
                stack: