Skip to content

Commit 0b5d794

Browse files
committed
[test] Wrote class for jvm int array testing
1 parent d862c70 commit 0b5d794

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
/*
2+
* Copyright (C) 2018 Muhammad Tayyab Akram
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
package com.mta.tehreer.internal.collections;
17+
18+
import com.mta.tehreer.collections.IntListTestSuite;
19+
20+
import org.junit.Before;
21+
22+
public class JIntArrayListTest extends IntListTestSuite {
23+
@Before
24+
public void setUp() {
25+
int[] sample = new int[] {
26+
0x00000000, 0x1C71C71C, 0x38E38E38, 0x55555554, 0x71C71C70,
27+
0x8E38E38C, 0xAAAAAAA8, 0xC71C71C4, 0xE38E38E0, 0xFFFFFFFC
28+
};
29+
30+
this.expected = sample;
31+
this.actual = new JIntArrayList(sample, 0, sample.length);
32+
}
33+
}

0 commit comments

Comments
 (0)