Skip to content
This repository has been archived by the owner on Dec 13, 2022. It is now read-only.

Typing comparison issues causing erroneous errors #35

Open
xloem opened this issue May 18, 2022 · 0 comments
Open

Typing comparison issues causing erroneous errors #35

xloem opened this issue May 18, 2022 · 0 comments

Comments

@xloem
Copy link

xloem commented May 18, 2022

I'm getting this line raised erroneously due to mismatching types of the compared values.

`Found mismatching block at: ${rowResult.height} because ${matchingRow["height"]} != ${rowResult.height}`
.

I found this by replacing the line with Found mismatching block at: ${rowResult.height.toString()} because ${typeof(matchingRow["height"])}:${matchingRow["height"]} != ${typeof(rowResult.height)}:${rowResult.height} to display the types.

rowResult is an object, and equality with it compares false.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant