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

Commit ce50585

Browse files
committed
sutの値パラメータを使う形に修正
1 parent 29e5130 commit ce50585

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/kotlin/com/mapk/fastkfunction/fastkfunction/UseDefaultValueCallTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ private class UseDefaultValueCallTest {
109109
fun test(target: KFunction<Dst>, instance: Any?, default: DefaultValues) {
110110
val sut = FastKFunction.of(target, instance)
111111
val bucket = sut.generateBucket().apply {
112-
val params = target.parameters.filter { it.kind == KParameter.Kind.VALUE && !it.isOptional }
112+
val params = sut.valueParameters
113113

114114
set(params[0], 100)
115115
set(params[1], "txt")

0 commit comments

Comments
 (0)