From a657a9698dcf9bdfbb85de71a6ab4ce5d9cf1d2f Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 23 Jul 2026 19:19:27 +0000 Subject: [PATCH] fix(buzz): use assertTrue instead of assert in ForumCommentEventTest MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Kotlin/Native marks the stdlib `assert()` with `@ExperimentalNativeApi`, so the iOS test target (`compileTestKotlinIosSimulatorArm64`) failed to compile without an opt-in — while JVM/Android were fine. Swap it for `assertTrue` from `kotlin.test`, which needs no opt-in on any target and matches the assertions already used in this file. Co-Authored-By: Claude Opus 4.8 Claude-Session: https://claude.ai/code/session_01J8KBSw6smQRyXLiWHeDsZ8 --- .../vitorpamplona/quartz/buzz/forum/ForumCommentEventTest.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/quartz/src/commonTest/kotlin/com/vitorpamplona/quartz/buzz/forum/ForumCommentEventTest.kt b/quartz/src/commonTest/kotlin/com/vitorpamplona/quartz/buzz/forum/ForumCommentEventTest.kt index 589c215b14..ae8fd0e014 100644 --- a/quartz/src/commonTest/kotlin/com/vitorpamplona/quartz/buzz/forum/ForumCommentEventTest.kt +++ b/quartz/src/commonTest/kotlin/com/vitorpamplona/quartz/buzz/forum/ForumCommentEventTest.kt @@ -23,6 +23,7 @@ package com.vitorpamplona.quartz.buzz.forum import kotlin.test.Test import kotlin.test.assertEquals import kotlin.test.assertNull +import kotlin.test.assertTrue class ForumCommentEventTest { private val channel = "3f2504e0-4f89-41d3-9a0c-0305e82c3301" @@ -70,6 +71,6 @@ class ForumCommentEventTest { ev: ForumCommentEvent, expected: Array, ) { - assert(ev.tags.any { it.toList() == expected.toList() }) { "missing tag ${expected.toList()}" } + assertTrue(ev.tags.any { it.toList() == expected.toList() }, "missing tag ${expected.toList()}") } }