Skip to content

Commit 7112b41

Browse files
committed
test name fixes
1 parent 2cc7f48 commit 7112b41

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

core-kotlin-modules/core-kotlin-numbers-2/src/test/kotlin/com/baeldung/intToFloat/IntToFloatUnitTest.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,30 +9,30 @@ import java.util.*
99
class IntToFloatUnitTest {
1010

1111
@Test
12-
fun testConvertIntToFloatUsingToFloat() {
12+
fun `convert int to float using toFloat() method`() {
1313
val intValue = 12
1414
val floatValue = intValue.toFloat()
1515

1616
assertEquals(12.0f, floatValue)
1717
}
1818

1919
@Test
20-
fun testConvertIntToFloatUsingArithmetic() {
20+
fun `convert int to float using arithmetic`() {
2121
val intValue = 12
2222
val floatValue = intValue + 0.0f
2323

2424
assertEquals(12.0f, floatValue)
2525
}
2626

2727
@Test
28-
fun testConvertIntToFloatUsingNumberFormat() {
28+
fun `convert int to float using NumberFormat class`() {
2929
val intValue = 12
3030
val floatValue = convertIntToFloatUsingNumberFormat(intValue)
3131
assertEquals(12.0f, floatValue)
3232
}
3333

3434
@Test
35-
fun testConvertIntToFloatUsingBigDecimal() {
35+
fun `convert int to float using BigDecimal`() {
3636
val intValue = 12
3737
val floatValue = BigDecimal(intValue).toFloat()
3838

0 commit comments

Comments
 (0)