aboutsummaryrefslogtreecommitdiffstats
path: root/packages/contracts/test
diff options
context:
space:
mode:
Diffstat (limited to 'packages/contracts/test')
-rw-r--r--packages/contracts/test/libraries/lib_bytes.ts10
1 files changed, 10 insertions, 0 deletions
diff --git a/packages/contracts/test/libraries/lib_bytes.ts b/packages/contracts/test/libraries/lib_bytes.ts
index 0c8431a6a..5edb5835a 100644
--- a/packages/contracts/test/libraries/lib_bytes.ts
+++ b/packages/contracts/test/libraries/lib_bytes.ts
@@ -172,6 +172,16 @@ describe('LibBytes', () => {
);
return expect(equals).to.be.false();
});
+
+ describe('should ignore trailing data', () => {
+ it('should return true when both < 32 bytes', async () => {
+ const equals = await libBytes.publicEqualsPop1.callAsync(
+ '0x0102',
+ '0x0103',
+ );
+ return expect(equals).to.be.true();
+ });
+ });
});
describe('deepCopyBytes', () => {