Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Write golden tests #101

Merged
merged 9 commits into from
Feb 24, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
[WIP] Changes how compilation tests proceed.
  • Loading branch information
jisungbin committed Feb 23, 2024
commit e298454e11f45849efa3876aea2396ba4649d341
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,10 @@ import org.jetbrains.kotlin.ir.expressions.IrConstructorCall
import org.jetbrains.kotlin.utils.addToStdlib.safeAs
import org.junit.Test

class TrackerKeyTest(useFir: Boolean) : AbstractCompilerTest(useFir = useFir) {
// FIXME: Failed to lookup symbols with 'fqName == kotlin.collections.MutableList.add',
// 'fn.owner.valueParameters.size == 1' in Kotlin 2.0. Needs to be fixed in the future.
class TrackerKeyTest(@Suppress("UNUSED_PARAMETER") useFir: Boolean) : AbstractCompilerTest(useFir = false) {
@Test fun generates_a_unique_key_for_the_same_function_name() {
if (useFir)
return println(
"Failed to lookup symbols with 'fqName == kotlin.collections.MutableList.add', " +
"'fn.owner.valueParameters.size == 1' in Kotlin 2.0. Needs to be fixed in the future."
)

@Suppress("LocalVariableName")
var _irTrace: WeakBindingTrace? = null
val result = compileToIr(
Expand Down
Loading