Recently Written · git

sbm-android

sbm bookmarks for Android: fuzzy search, share to add, sync with bm and the browser add-on

git clone https://github.com/equwal/sbm-android

Log | Files | Refs


app/src/test/java/com/equwal/sbm/MoreAppsTest.kt (816 bytes)

1 package com.equwal.sbm
2 
3 import net.jqwik.api.Example
4 
5 class MoreAppsTest {
6     @Example
7     fun `the list leaves out this app`() {
8         check(MORE_APPS.none { "equwal/sbm-android" in it.url })
9     }
10 
11     @Example
12     fun `each link opens an https page`() {
13         for (app in MORE_APPS) check(app.url.startsWith("https://")) { app.url }
14     }
15 
16     @Example
17     fun `the list keeps the order of the catalog`() {
18         val sites = listOf("https://subread.space/", "https://booksimulator.com/", "https://honjimaku.com/", "https://sbmsync.com/")
19         check(MORE_APPS.take(4).map { it.url } == sites)
20         check(MORE_APPS.last().url == "https://recentlywritten.com/projects.html")
21         // The catalog has 15 entries. This app is the one that is not in the list.
22         check(MORE_APPS.size == 14)
23     }
24 }