diff options
author | Austin Henriksen <austin@zeroc.com> | 2020-02-07 19:17:40 -0500 |
---|---|---|
committer | Austin Henriksen <austin@zeroc.com> | 2020-02-07 19:17:40 -0500 |
commit | a1a307c6ff090545d873d1964e8c9ee124e63e7e (patch) | |
tree | dafea696fae5f536f521909eabac0bb23504dc35 | |
parent | Added missing end statements to MATLAB 'Ice/objects' test. (diff) | |
download | ice-a1a307c6ff090545d873d1964e8c9ee124e63e7e.tar.bz2 ice-a1a307c6ff090545d873d1964e8c9ee124e63e7e.tar.xz ice-a1a307c6ff090545d873d1964e8c9ee124e63e7e.zip |
Fixed MATLAB test bug. (See #704)
-rw-r--r-- | matlab/test/Ice/optional/AllTests.m | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/matlab/test/Ice/optional/AllTests.m b/matlab/test/Ice/optional/AllTests.m index fc0e869409a..954819791e0 100644 --- a/matlab/test/Ice/optional/AllTests.m +++ b/matlab/test/Ice/optional/AllTests.m @@ -178,7 +178,9 @@ classdef AllTests assert(strcmp(mo5.h, mo1.h)); assert(mo5.i == mo1.i); assert(mo5.j == mo1.j); - assert(isempty(mo5.k)); + % With the Swift mapping you cannot distinguish null from an + % unset optional, so we test for both to support cross-testing. + assert(isempty(mo5.k) || mo5.k == Ice.Unset); assert(mo5.bs(1) == 5); assert(isequal(mo5.ss, mo1.ss)); assert(mo5.iid(4) == 3); |