This commit is contained in:
laoyuyu
2020-04-18 11:30:55 +08:00
parent 0476c3a941
commit 1f2ac36580
45 changed files with 733 additions and 430 deletions

View File

@@ -0,0 +1,18 @@
package com.example.arial.downloaddemo
import androidx.test.runner.AndroidJUnit4
import com.arialyy.aria.util.CommonUtil
import org.junit.Test
import org.junit.runner.RunWith
import kotlin.math.pow
@RunWith(AndroidJUnit4::class)
class ApiTest {
@Test
fun testSpeed() {
val speed = 1024.0.pow(4.0) * 2
println("speed = ${CommonUtil.formatFileSize(speed)}")
}
}