From 31e21db5b5c40a80b71bb411149bec3345cf17de Mon Sep 17 00:00:00 2001 From: Remco Bloemen Date: Mon, 28 May 2018 14:13:39 +0200 Subject: Add test for zero-size overlap --- packages/contracts/test/libraries/lib_mem.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'packages') 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'], -- cgit v1.2.3