- Fixes Preview Tag
- Fixes Email Pattern
This commit is contained in:
+3
-3
@@ -50,7 +50,7 @@ class BlurhashTest {
|
||||
val bmp1 = BlurHashDecoderOld.decode(warmHex, 100, (100 * (1 / aspectRatio)).roundToInt())
|
||||
val bmp2 = BlurHashDecoder.decodeKeepAspectRatio(warmHex, 100)
|
||||
|
||||
assertTrue(bmp1!!.sameAs(bmp2!!))
|
||||
assertTrue(bmp1!!.sameAs(bmp2!!.bitmap))
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -60,7 +60,7 @@ class BlurhashTest {
|
||||
val bmp1 = BlurHashDecoderOld.decode(warmHex, 25, (25 * (1 / aspectRatio)).roundToInt())
|
||||
val bmp2 = BlurHashDecoder.decodeKeepAspectRatio(warmHex, 25)
|
||||
|
||||
assertTrue(bmp1!!.sameAs(bmp2!!))
|
||||
assertTrue(bmp1!!.sameAs(bmp2!!.bitmap))
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -75,7 +75,7 @@ class BlurhashTest {
|
||||
val bmp1 = BlurHashDecoderOld.decode(testHex, 100, (100 * (1 / aspectRatio)).roundToInt())
|
||||
val bmp2 = BlurHashDecoder.decodeKeepAspectRatio(testHex, 100)
|
||||
|
||||
assertTrue(bmp1!!.sameAs(bmp2!!))
|
||||
assertTrue(bmp1!!.sameAs(bmp2!!.bitmap))
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
+2
-1
@@ -23,6 +23,7 @@ package com.vitorpamplona.amethyst.commons.richtext
|
||||
import androidx.test.ext.junit.runners.AndroidJUnit4
|
||||
import com.vitorpamplona.quartz.nip01Core.core.EmptyTagList
|
||||
import com.vitorpamplona.quartz.nip01Core.core.ImmutableListOfLists
|
||||
import junit.framework.TestCase.assertEquals
|
||||
import org.junit.Test
|
||||
import org.junit.runner.RunWith
|
||||
|
||||
@@ -688,7 +689,7 @@ class RichTextParserTest {
|
||||
val state =
|
||||
RichTextParser()
|
||||
.parseText(textToParse, EmptyTagList, null)
|
||||
org.junit.Assert.assertEquals(
|
||||
assertEquals(
|
||||
"relay.shitforce.one, relayable.org, universe.nostrich.land, nos.lol, universe.nostrich.land?lang=zh, universe.nostrich.land?lang=en, relay.damus.io, relay.nostr.wirednet.jp, offchain.pub, nostr.rocks, relay.wellorder.net, nostr.oxtr.dev, universe.nostrich.land?lang=ja, relay.mostr.pub, nostr.bitcoiner.social, Nostr-Check.com, MR.Rabbit, Ancap.su, ⚡\uFE0Fsatscoinsv@getalby.com, miceliomad@miceliomad.github.io/nostr/, zapper.lol, smies.me, baller.hodl",
|
||||
state.urlSet.joinToString(", "),
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user