-
Notifications
You must be signed in to change notification settings - Fork 120
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
155 additions
and
113 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
53 changes: 0 additions & 53 deletions
53
src/test/e2e-emulated/__snapshots__/map-comparison.spec.ts.snap
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,55 +1,27 @@ | ||
message CompareIntInt { | ||
m1: map<Int, Int>; | ||
m2: map<Int, Int>; | ||
} | ||
|
||
message CompareIntCell { | ||
m1: map<Int, Cell>; | ||
m2: map<Int, Cell>; | ||
} | ||
|
||
message CompareIntAddress { | ||
m1: map<Int, Address>; | ||
m2: map<Int, Address>; | ||
} | ||
|
||
message CompareAddressInt { | ||
m1: map<Address, Int>; | ||
m2: map<Address, Int>; | ||
} | ||
|
||
message CompareAddressCell { | ||
m1: map<Address, Cell>; | ||
m2: map<Address, Cell>; | ||
} | ||
|
||
message CompareAddressAddress { | ||
m1: map<Address, Address>; | ||
m2: map<Address, Address>; | ||
} | ||
|
||
contract MapComparisonTestContract { | ||
receive(msg: CompareIntInt) { | ||
require(msg.m1.deepEquals(msg.m2), "Maps are not equal"); | ||
receive() {} | ||
|
||
get fun compareIntInt(m1: map<Int, Int>, m2: map<Int, Int>): Bool { | ||
return m1.deepEquals(m2); | ||
} | ||
|
||
receive(msg: CompareIntCell) { | ||
require(msg.m1.deepEquals(msg.m2), "Maps are not equal"); | ||
get fun compareIntCell(m1: map<Int, Cell>, m2: map<Int, Cell>): Bool { | ||
return m1.deepEquals(m2); | ||
} | ||
|
||
receive(msg: CompareIntAddress) { | ||
require(msg.m1.deepEquals(msg.m2), "Maps are not equal"); | ||
get fun compareIntAddress(m1: map<Int, Address>, m2: map<Int, Address>): Bool { | ||
return m1.deepEquals(m2); | ||
} | ||
|
||
receive(msg: CompareAddressInt) { | ||
require(msg.m1.deepEquals(msg.m2), "Maps are not equal"); | ||
get fun compareAddressInt(m1: map<Address, Int>, m2: map<Address, Int>): Bool { | ||
return m1.deepEquals(m2); | ||
} | ||
|
||
receive(msg: CompareAddressCell) { | ||
require(msg.m1.deepEquals(msg.m2), "Maps are not equal"); | ||
get fun compareAddressCell(m1: map<Address, Cell>, m2: map<Address, Cell>): Bool { | ||
return m1.deepEquals(m2); | ||
} | ||
|
||
receive(msg: CompareAddressAddress) { | ||
require(msg.m1.deepEquals(msg.m2), "Maps are not equal"); | ||
get fun compareAddressAddress(m1: map<Address, Address>, m2: map<Address, Address>): Bool { | ||
return m1.deepEquals(m2); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters