Mercurial > repos > public > sbplib
diff MapTest.m @ 979:7a5e770974ed feature/timesteppers
Merge with default
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Mon, 07 Jan 2019 16:26:00 +0100 |
parents | a6c5e73ff44e |
children |
line wrap: on
line diff
--- a/MapTest.m Mon Dec 03 16:49:43 2018 -0800 +++ b/MapTest.m Mon Jan 07 16:26:00 2019 +0100 @@ -12,6 +12,21 @@ }; end +function testMultiKey(testCase) + map = Map + + function setMultiKey() + map(1,2) = 1; + end + + function getMultiKey() + v = map(1,2); + end + + testCase.verifyError(@setMultiKey,'sbplib:Map:multipleKeys') + testCase.verifyError(@getMultiKey,'sbplib:Map:multipleKeys') +end + function testSetAndGet(testCase) keyValuePairs = getKeyValuePairs();