File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 14
14
it "produces the same class as java_type for objects" do
15
15
big_integer_class = Truffle ::Interop . java_type ( "java.math.BigInteger" )
16
16
big_integer = big_integer_class . new ( "14" )
17
- big_integer . getClass . equal? ( big_integer_class ) . should be_true
17
+ big_integer . getClass . equal? ( big_integer_class [ :class ] ) . should be_true
18
18
end
19
19
20
20
it "produces the same class as java_type for arrays of objects" do
21
21
big_integer_array_class = Truffle ::Interop . java_type ( "java.math.BigInteger[]" )
22
22
big_integer_array = big_integer_array_class . new ( 3 )
23
- big_integer_array . getClass . equal? ( big_integer_array_class ) . should be_true
23
+ big_integer_array . getClass . equal? ( big_integer_array_class [ :class ] ) . should be_true
24
24
end
25
25
26
26
it "produces the same class as java_type for arrays of primitives" do
27
27
int_array_class = Truffle ::Interop . java_type ( "int[]" )
28
28
int_array = int_array_class . new ( 3 )
29
- int_array . getClass . equal? ( int_array_class ) . should be_true
29
+ int_array . getClass . equal? ( int_array_class [ :class ] ) . should be_true
30
30
end
31
31
32
32
end
You can’t perform that action at this time.
0 commit comments