Skip to content

Commit

Permalink
fix: fix copy issue
Browse files Browse the repository at this point in the history
  • Loading branch information
phodal committed Dec 25, 2023
1 parent 7476c0e commit dd25185
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,11 @@ import cc.unitmesh.core.SupportedLang
import cc.unitmesh.core.unittest.TestCodeBuilderType
import cc.unitmesh.core.unittest.TypedTestIns
import cc.unitmesh.pick.builder.ins.RelatedCodeIns
import kotlinx.serialization.Serializable
import kotlinx.serialization.json.Json

class BasicTestIns(
@Serializable
data class BasicTestIns(
val lang: SupportedLang,
val underTestCode: String,
val generatedCode: String,
Expand All @@ -21,7 +23,7 @@ class BasicTestIns(
override val testType: TestCodeBuilderType,
) : TypedTestIns() {
override fun toString(): String {
return Json.encodeToString(RelatedCodeIns.serializer(), this)
return Json.encodeToString(serializer(), this)
}

override fun unique(): Instruction {
Expand Down

0 comments on commit dd25185

Please sign in to comment.