Skip to content

Commit

Permalink
test: ignore tokenizer tests on native (#749)
Browse files Browse the repository at this point in the history
  • Loading branch information
realdavidvega authored May 30, 2024
1 parent fc6a58e commit 625428c
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ import io.kotest.matchers.shouldBe
import io.kotest.matchers.string.shouldStartWith
import kotlin.test.Test

// Ignore test on native since not all characters can be encoded
@IgnoreOnNative
class O200kBaseTest {
private val resource = Resource("src/commonTest/resources/o200k_base_encodings.csv")
private val ENCODING = O200K_BASE.encoding
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,6 @@ fun String.parseEncoding(): List<Int> =
.split(",")
.dropLastWhile { it.isEmpty() }
.map { it.toInt() }

@Target(AnnotationTarget.CLASS, AnnotationTarget.FUNCTION)
expect annotation class IgnoreOnNative()
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
package com.xebia.functional.tokenizer

@Target(AnnotationTarget.CLASS, AnnotationTarget.FUNCTION)
actual annotation class IgnoreOnNative
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
package com.xebia.functional.tokenizer

@Target(AnnotationTarget.CLASS, AnnotationTarget.FUNCTION)
actual annotation class IgnoreOnNative
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
package com.xebia.functional.tokenizer

actual typealias IgnoreOnNative = kotlin.test.Ignore

0 comments on commit 625428c

Please sign in to comment.