package com.example.smart
|
|
import android.graphics.Rect
|
import android.util.Log
|
import androidx.core.util.Pools
|
import org.junit.Test
|
|
/**
|
* Example local unit test, which will execute on the development machine (host).
|
*
|
* See [testing documentation](http://d.android.com/tools/testing).
|
*/
|
class ExampleUnitTest {
|
@Test
|
fun addition_isCorrect() {
|
// assertEquals(4, 2 + 2)
|
|
val sRectPool: Pools.Pool<Rect> = Pools.SynchronizedPool(6)
|
|
val data = arrayOfNulls<Int>(6)
|
|
var int1 = data[0]
|
if (int1 == null) {
|
int1 = 12
|
}
|
println("$int1,data0=${data.get(0)}")
|
|
}
|
|
|
}
|