Skip to content
This repository was archived by the owner on Jan 20, 2023. It is now read-only.

Commit f31a64d

Browse files
committed
文字列に対してtoStringしたものを渡すテストを追加
1 parent a35db64 commit f31a64d

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
package mapk.core
2+
3+
import com.wrongwrong.mapk.core.KMapper
4+
import org.junit.jupiter.api.Assertions.assertEquals
5+
import org.junit.jupiter.api.DisplayName
6+
import org.junit.jupiter.api.Test
7+
8+
private data class StringMappingDst(val value: String)
9+
10+
@DisplayName("文字列に対してtoStringしたものを渡すテスト")
11+
class StringMappingTest {
12+
@Test
13+
fun test() {
14+
val result: StringMappingDst = KMapper(StringMappingDst::class).map("value" to 1)
15+
assertEquals("1", result.value)
16+
}
17+
}

0 commit comments

Comments
 (0)