aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorRemco Bloemen <remco@wicked.ventures>2018-05-28 20:13:39 +0800
committerGreg Hysen <greg.hysen@gmail.com>2018-06-08 06:38:48 +0800
commit31e21db5b5c40a80b71bb411149bec3345cf17de (patch)
tree725da5e1934207fcb1543019075f335eb0089292 /packages
parent7f218725106947066713a1f9610f0550abb464fa (diff)
downloaddexon-0x-contracts-31e21db5b5c40a80b71bb411149bec3345cf17de.tar.gz
dexon-0x-contracts-31e21db5b5c40a80b71bb411149bec3345cf17de.tar.zst
dexon-0x-contracts-31e21db5b5c40a80b71bb411149bec3345cf17de.zip
Add test for zero-size overlap
Diffstat (limited to 'packages')
-rw-r--r--packages/contracts/test/libraries/lib_mem.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/packages/contracts/test/libraries/lib_mem.ts b/packages/contracts/test/libraries/lib_mem.ts
index 4316bab6e..0a2f69f61 100644
--- a/packages/contracts/test/libraries/lib_mem.ts
+++ b/packages/contracts/test/libraries/lib_mem.ts
@@ -57,7 +57,9 @@ describe('LibMem', () => {
expect(result).to.deep.equal(expected);
}),
);
-
+
+ test([[0, 0, 0, 'copies zero bytes with overlap']]);
+
describe('copies forward', () => test([
[128, 0, 0, 'zero bytes'],
[128, 0, 1, 'one byte'],