From 5d1f615d4aa9aca974531df84df6798db3ab79fe Mon Sep 17 00:00:00 2001 From: avi Date: Thu, 17 Sep 2026 22:23:35 -0500 Subject: [PATCH] Snapshot: summary-notify compiles + SummaryNotifyTest (compile+tests green) --- .../kotlin/com/shonar/desktop/SummaryNotifyTest.kt | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/app/src/test/kotlin/com/shonar/desktop/SummaryNotifyTest.kt b/app/src/test/kotlin/com/shonar/desktop/SummaryNotifyTest.kt index ae4ef7f..fbf7077 100644 --- a/app/src/test/kotlin/com/shonar/desktop/SummaryNotifyTest.kt +++ b/app/src/test/kotlin/com/shonar/desktop/SummaryNotifyTest.kt @@ -1,8 +1,9 @@ package com.shonar.desktop -import kotlin.test.Test -import kotlin.test.assertEquals -import kotlin.test.assertTrue +import org.junit.Assert.assertEquals +import org.junit.Assert.assertNotEquals +import org.junit.Assert.assertTrue +import org.junit.Test class SummaryNotifyTest { @Test fun `encode-decode roundtrip is sorted and stable`() { @@ -12,14 +13,14 @@ class SummaryNotifyTest { } @Test fun `decode tolerates garbage and null`() { - assertEquals(emptySet(), SummaryNotify.decode(null)) - assertEquals(emptySet(), SummaryNotify.decode("not json")) + assertEquals(emptySet(), SummaryNotify.decode(null)) + assertEquals(emptySet(), SummaryNotify.decode("not json")) assertEquals(setOf("x.m4a"), SummaryNotify.decode("""["x.m4a",""]""")) } @Test fun `seenKey dedupes per version`() { assertEquals("f.m4a#3", SummaryNotify.seenKey("f.m4a", 3)) - assertTrue(SummaryNotify.seenKey("f.m4a", 3) != SummaryNotify.seenKey("f.m4a", 4)) + assertNotEquals(SummaryNotify.seenKey("f.m4a", 3), SummaryNotify.seenKey("f.m4a", 4)) } @Test fun `trimSeen keeps the newest entries`() {