Skip to content

Commit

Permalink
Fix DataFrame test fail with different Locales
Browse files Browse the repository at this point in the history
  • Loading branch information
jurmous committed Jul 6, 2024
1 parent 11aa822 commit cd3e802
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,14 @@ package maryk.dataframe.models

import maryk.test.models.TestMarykModel
import org.junit.jupiter.api.Assertions.assertEquals
import java.util.*
import kotlin.test.Test

class DataModelToDataFrameTest {
init {
Locale.setDefault(Locale.US)
}

@Test
fun testToDataFrame() {
val dataFrameTest = TestMarykModel.toDataFrame()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,15 @@ import maryk.test.models.MarykEnumEmbedded.E1
import maryk.test.models.SimpleMarykTypeEnum
import maryk.test.models.SimpleMarykTypeEnum.S1
import maryk.test.models.TestMarykModel
import java.util.*
import kotlin.test.Test
import kotlin.test.assertEquals

class ValueWithMetaDataToDataFrameTest {
init {
Locale.setDefault(Locale.US)
}

@Test
fun testToDataFrame() {
val data = TestMarykModel(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,15 @@ import maryk.test.models.MarykEnumEmbedded.E1
import maryk.test.models.SimpleMarykTypeEnum
import maryk.test.models.SimpleMarykTypeEnum.S1
import maryk.test.models.TestMarykModel
import java.util.*
import kotlin.test.Test
import kotlin.test.assertEquals

class ValuesToDataFrameTest {
init {
Locale.setDefault(Locale.US)
}

@Test
fun testToDataFrame() {
val dataFrameTest = TestMarykModel(
Expand All @@ -31,7 +36,7 @@ class ValuesToDataFrameTest {
assertEquals(
"""
| string int uint double dateTime bool enum embeddedValues
| 0 haas 4 53 3,5555 2017-12-05T12:40 true V1 { value:haas }
| 0 haas 4 53 3.5555 2017-12-05T12:40 true V1 { value:haas }
|
""".trimMargin("|"),
dataFrameTest.toString()
Expand Down

0 comments on commit cd3e802

Please sign in to comment.