Skip to content

Commit 5907574

Browse files
committed
add test for isWarm
1 parent 6c03624 commit 5907574

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Samples/JExtractJNISampleApp/src/test/java/com/example/swift/MySwiftClassTest.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,5 +111,11 @@ void mutableDividedByTwo() {
111111
}
112112
}
113113

114-
114+
@Test
115+
void isWarm() {
116+
try (var arena = new ConfinedSwiftMemorySession()) {
117+
MySwiftClass c = MySwiftClass.init(20, 10, arena);
118+
assertFalse(c.isWarm());
119+
}
120+
}
115121
}

0 commit comments

Comments
 (0)