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/SyncTest.kt (452 bytes)

1 package com.equwal.sbm
2 
3 import net.jqwik.api.Example
4 
5 class SyncTest {
6     @Example
7     fun `an address without a scheme gets https`() {
8         check(Sync.address(" sbm.example.org/ ") == "https://sbm.example.org")
9     }
10 
11     @Example
12     fun `an address with a scheme stays`() {
13         check(Sync.address("https://sbm.example.org") == "https://sbm.example.org")
14         check(Sync.address("http://10.0.2.2:8750/") == "http://10.0.2.2:8750")
15     }
16 }