Minor: normalize '@Test' annotation casing in all tests.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
package test.numbers
|
||||
|
||||
import org.junit.Test as test
|
||||
import org.junit.Test
|
||||
import kotlin.test.*
|
||||
|
||||
object NumbersTestConstants {
|
||||
@@ -21,7 +21,7 @@ class NumbersTest {
|
||||
|
||||
var one: Int = 1
|
||||
|
||||
@test fun intMinMaxValues() {
|
||||
@Test fun intMinMaxValues() {
|
||||
assertTrue(Int.MIN_VALUE < 0)
|
||||
assertTrue(Int.MAX_VALUE > 0)
|
||||
|
||||
@@ -34,7 +34,7 @@ class NumbersTest {
|
||||
// expect(Int.MAX_VALUE) { Int.MIN_VALUE - 1 }
|
||||
}
|
||||
|
||||
@test fun longMinMaxValues() {
|
||||
@Test fun longMinMaxValues() {
|
||||
assertTrue(Long.MIN_VALUE < 0)
|
||||
assertTrue(Long.MAX_VALUE > 0)
|
||||
|
||||
@@ -46,7 +46,7 @@ class NumbersTest {
|
||||
expect(Long.MAX_VALUE) { Long.MIN_VALUE - 1 }
|
||||
}
|
||||
|
||||
@test fun shortMinMaxValues() {
|
||||
@Test fun shortMinMaxValues() {
|
||||
assertTrue(Short.MIN_VALUE < 0)
|
||||
assertTrue(Short.MAX_VALUE > 0)
|
||||
|
||||
@@ -58,7 +58,7 @@ class NumbersTest {
|
||||
expect(Short.MAX_VALUE) { (Short.MIN_VALUE - 1).toShort() }
|
||||
}
|
||||
|
||||
@test fun byteMinMaxValues() {
|
||||
@Test fun byteMinMaxValues() {
|
||||
assertTrue(Byte.MIN_VALUE < 0)
|
||||
assertTrue(Byte.MAX_VALUE > 0)
|
||||
|
||||
@@ -70,7 +70,7 @@ class NumbersTest {
|
||||
expect(Byte.MAX_VALUE) { (Byte.MIN_VALUE - 1).toByte() }
|
||||
}
|
||||
|
||||
@test fun doubleMinMaxValues() {
|
||||
@Test fun doubleMinMaxValues() {
|
||||
assertTrue(Double.MIN_VALUE > 0)
|
||||
assertTrue(Double.MAX_VALUE > 0)
|
||||
|
||||
@@ -80,7 +80,7 @@ class NumbersTest {
|
||||
expect(0.0) { Double.MIN_VALUE / 2 }
|
||||
}
|
||||
|
||||
@test fun floatMinMaxValues() {
|
||||
@Test fun floatMinMaxValues() {
|
||||
assertTrue(Float.MIN_VALUE > 0)
|
||||
assertTrue(Float.MAX_VALUE > 0)
|
||||
|
||||
@@ -90,7 +90,7 @@ class NumbersTest {
|
||||
expect(0.0F) { Float.MIN_VALUE / 2.0F }
|
||||
}
|
||||
|
||||
@test fun doubleProperties() {
|
||||
@Test fun doubleProperties() {
|
||||
for (value in listOf(1.0, 0.0, Double.MIN_VALUE, Double.MAX_VALUE))
|
||||
doTestNumber(value)
|
||||
for (value in listOf(Double.POSITIVE_INFINITY, Double.NEGATIVE_INFINITY))
|
||||
@@ -98,7 +98,7 @@ class NumbersTest {
|
||||
doTestNumber(Double.NaN, isNaN = true)
|
||||
}
|
||||
|
||||
@test fun floatProperties() {
|
||||
@Test fun floatProperties() {
|
||||
for (value in listOf(1.0F, 0.0F, Float.MAX_VALUE, Float.MIN_VALUE))
|
||||
doTestNumber(value)
|
||||
for (value in listOf(Float.POSITIVE_INFINITY, Float.NEGATIVE_INFINITY))
|
||||
|
||||
Reference in New Issue
Block a user