Skip to content

changes to support correct boolean values for deepEquals#148

Merged
nadiapadalka merged 1 commit into
mainfrom
deepEqualsFix
Apr 24, 2026
Merged

changes to support correct boolean values for deepEquals#148
nadiapadalka merged 1 commit into
mainfrom
deepEqualsFix

Conversation

@nadiapadalka

@nadiapadalka nadiapadalka commented Apr 3, 2026

Copy link
Copy Markdown
Collaborator

Added changes to compare all types in scope of deepEquals function, added more tests for checking new logic as well
Screenshot 2026-04-03 at 12 59 29

@nadiapadalka nadiapadalka added bug Something isn't working enhancement New feature or request labels Apr 3, 2026
Comment thread resources/assert_lib.brs
end if

if __roca_isString(lhs) and __roca_isString(rhs) then
if _roca_isSameValueType(lhs, rhs) then

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice catch!

m.it("failure string values", sub()
argument = "test"
result = fakeFunc(argument)
m.assert.deepEquals(result, false, "Expected mock function 'fakeFunc' should have returned 'test', but false is expected")

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for string, should it return a different string value or false?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is test for failure

actual: "test",
expected: "false",
message:
"Expected mock function 'fakeFunc' should have returned 'test', but false is expected",

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'false' ?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no, this is test for failure

@nadiapadalka nadiapadalka requested a review from Nowele April 15, 2026 09:41
@nadiapadalka nadiapadalka merged commit 674c17b into main Apr 24, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants