From 7007e61879bf33c09115b5d8bc16f27af2731045 Mon Sep 17 00:00:00 2001 From: Allan Wang Date: Sat, 19 Oct 2019 22:30:16 -0700 Subject: Convert java math to kotlin math --- core/src/test/kotlin/ca/allanwang/kau/ui/ProgressAnimatorTest.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'core/src/test/kotlin/ca') diff --git a/core/src/test/kotlin/ca/allanwang/kau/ui/ProgressAnimatorTest.kt b/core/src/test/kotlin/ca/allanwang/kau/ui/ProgressAnimatorTest.kt index 6b99b14..8b99f3c 100644 --- a/core/src/test/kotlin/ca/allanwang/kau/ui/ProgressAnimatorTest.kt +++ b/core/src/test/kotlin/ca/allanwang/kau/ui/ProgressAnimatorTest.kt @@ -16,6 +16,7 @@ package ca.allanwang.kau.ui import org.junit.Test +import kotlin.math.min import kotlin.test.assertEquals import kotlin.test.assertFalse import kotlin.test.assertTrue @@ -67,7 +68,7 @@ class ProgressAnimatorTest { i > 0.5f } withAnimator { - assertEquals(Math.min(it, 0.5f), i) + assertEquals(min(it, 0.5f), i) } }.test() } -- cgit v1.2.3