Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for deep Map equality with asserts#equal #3236

Merged
merged 5 commits into from
Oct 30, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Adds test case for Arrays as Map values
  • Loading branch information
jamesseanwright committed Oct 29, 2019
commit 5556c667aa55b59523a556f46aef20d5f8677434
1 change: 1 addition & 0 deletions std/testing/asserts_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ test(function testingEqual(): void {
assert(equal(new Map([["foo", new Map([["bar", "baz"]])]]), new Map([["foo", new Map([["bar", "baz"]])]])));
assert(equal(new Map([["foo", { bar: 'baz' }]]), new Map([["foo", { bar: 'baz' }]])));
assert(equal(new Map([["foo", "bar"], ["baz", "qux"]]), new Map([["baz", "qux"], ["foo", "bar"]])));
assert(equal(new Map([["foo", ["bar"]]]), new Map([["foo", ["bar"]]])));
assert(!equal(new Map([["foo", "bar"]]), new Map([["bar", "baz"]])));
assert(!equal(new Map([["foo", "bar"]]), new Map([["foo", "bar"], ["bar", "baz"]])));
assert(!equal(new Map([["foo", new Map([["bar", "baz"]])]]), new Map([["foo", new Map([["bar", "qux"]])]])));
Expand Down