diff options
author | Michi Henning <michi@zeroc.com> | 2003-05-20 07:53:29 +0000 |
---|---|---|
committer | Michi Henning <michi@zeroc.com> | 2003-05-20 07:53:29 +0000 |
commit | dcc2b4d839ee93c145fc321cc95b9f54e3b6c685 (patch) | |
tree | 3cec0953487f7ab3e3d8fed1f0e8d068bf189f50 /java/test/Ice/operations/Twoways.java | |
parent | Removed two slicing tests that can't be implemented in Java. (diff) | |
download | ice-dcc2b4d839ee93c145fc321cc95b9f54e3b6c685.tar.bz2 ice-dcc2b4d839ee93c145fc321cc95b9f54e3b6c685.tar.xz ice-dcc2b4d839ee93c145fc321cc95b9f54e3b6c685.zip |
Changed marshaling for sizes: sizes of up to 254 are now marshaled in a
single byte. Added appropriate tests for this to Ice/test/operations.
Finished slicing for icej. All tests pass. Removed remaining trace.
Diffstat (limited to 'java/test/Ice/operations/Twoways.java')
-rw-r--r-- | java/test/Ice/operations/Twoways.java | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/java/test/Ice/operations/Twoways.java b/java/test/Ice/operations/Twoways.java index 1136c365781..6606b9351d3 100644 --- a/java/test/Ice/operations/Twoways.java +++ b/java/test/Ice/operations/Twoways.java @@ -507,5 +507,24 @@ class Twoways test(((Test.MyEnum)ro.get("")) == Test.MyEnum.enum2); test(((Test.MyEnum)ro.get("Hello!!")) == Test.MyEnum.enum2); } + + { + int[] lengths = { 0, 1, 2, 126, 127, 128, 129, 253, 254, 255, 256, 257, 1000 }; + + for(int l = 0; l < lengths.length; ++l) + { + int[] s = new int[lengths[l]]; + for(int i = 0; i < lengths[l]; ++i) + { + s[i] = i; + } + int[] r = p.opIntS(s); + test(r.length == lengths[l]); + for(int j = 0; j < r.length; ++j) + { + test(r[j] == -j); + } + } + } } } |