aboutsummaryrefslogtreecommitdiffstats
path: root/packages/contracts
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/contracts
parent7f218725106947066713a1f9610f0550abb464fa (diff)
downloaddexon-sol-tools-31e21db5b5c40a80b71bb411149bec3345cf17de.tar
dexon-sol-tools-31e21db5b5c40a80b71bb411149bec3345cf17de.tar.gz
dexon-sol-tools-31e21db5b5c40a80b71bb411149bec3345cf17de.tar.bz2
dexon-sol-tools-31e21db5b5c40a80b71bb411149bec3345cf17de.tar.lz
dexon-sol-tools-31e21db5b5c40a80b71bb411149bec3345cf17de.tar.xz
dexon-sol-tools-31e21db5b5c40a80b71bb411149bec3345cf17de.tar.zst
dexon-sol-tools-31e21db5b5c40a80b71bb411149bec3345cf17de.zip
Add test for zero-size overlap
Diffstat (limited to 'packages/contracts')
-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'],