🔀 Merge branch 'release/v82'
[Sone.git] / pterodactylus / sone / text / FreenetLinkPartTest.kt
1 package net.pterodactylus.sone.text
2
3 import org.hamcrest.MatcherAssert.assertThat
4 import org.hamcrest.Matchers.`is`
5 import org.junit.Test
6
7 /**
8  * Unit test for [FreenetLinkPart].
9  */
10 class FreenetLinkPartTest {
11
12         @Test
13         fun linkIsUsedAsTitleIfNoTextIsGiven() {
14                 assertThat(FreenetLinkPart("link", "text", true).title, `is`("link"))
15         }
16
17 }