File tree Expand file tree Collapse file tree 1 file changed +9
-7
lines changed
tests/samples/src/test/scala/org/scalanative/bindgen/samples Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -8,14 +8,16 @@ object UnionTests extends TestSuite {
8
8
val tests = Tests {
9
9
' getValues - {
10
10
Zone {implicit zone =>
11
- val structPtr = alloc[Union .union_values]
12
- Union .setIntValue(structPtr)
13
- assert(! structPtr.i == 10 )
14
- Union .setLongValue(structPtr)
15
- assert(! structPtr.l == 10000000000L )
16
-
17
- assert(Union .getUnionSize() == sizeof[Union .union_values])
11
+ val unionPtr = alloc[Union .union_values]
12
+ Union .setIntValue(unionPtr)
13
+ assert(! unionPtr.i == 10 )
14
+ Union .setLongValue(unionPtr)
15
+ assert(! unionPtr.l == 10000000000L )
18
16
}
19
17
}
18
+
19
+ ' unionSize - {
20
+ assert(Union .getUnionSize() == sizeof[Union .union_values])
21
+ }
20
22
}
21
23
}
You can’t perform that action at this time.
0 commit comments