Recently Written · git

ink-recents

Ink Recents: a recent-apps switcher drawn for e-ink readers. No animation, swipe up to close, swipe down to close the others.

git clone https://github.com/equwal/ink-recents

Log | Files | Refs


app/src/test/java/dev/equwal/inkrecents/MoreAppsTest.kt (1034 bytes)

1 // SPDX-License-Identifier: GPL-3.0-or-later
2 // Copyright (c) 2026 equwal
3 package dev.equwal.inkrecents
4 
5 import org.junit.Assert.assertEquals
6 import org.junit.Assert.assertFalse
7 import org.junit.Assert.assertTrue
8 import org.junit.Test
9 
10 /** Tests for the list of the More apps section. */
11 class MoreAppsTest {
12 
13     @Test fun `the list leaves out Ink Recents`() {
14         assertFalse(MoreApps.ALL.any { it.name == "Ink Recents" || "equwal/ink-recents" in it.url })
15     }
16 
17     @Test fun `each link opens an https page`() {
18         for (app in MoreApps.ALL) assertTrue(app.url, app.url.startsWith("https://"))
19     }
20 
21     @Test fun `the list keeps the order of the catalog`() {
22         assertEquals(
23             listOf("SubRead", "Book Simulator", "honjimaku.com", "sbm Sync"),
24             MoreApps.ALL.take(4).map { it.name }
25         )
26         assertEquals("All projects", MoreApps.ALL.last().name)
27         // The catalog has 15 entries. Ink Recents is the one that is not in the list.
28         assertEquals(14, MoreApps.ALL.size)
29     }
30 }