Prepare test parse_TLV

This commit is contained in:
Chemaclass
2023-03-03 22:58:24 +01:00
parent 47f3fe5cc6
commit bd3d7e1aa3
2 changed files with 11 additions and 3 deletions
@@ -1,6 +1,7 @@
package com.vitorpamplona.amethyst.service
import org.junit.Assert
import org.junit.Ignore
import org.junit.Test
class Nip19Test {
@@ -18,8 +19,15 @@ class Nip19Test {
@Test()
fun to_int_32_length_4() {
val actual = toInt32(byteArrayOfInts(1, 2, 3, 4))
Assert.assertEquals(16909060, actual)
}
@Ignore("Not implemented yet")
@Test()
fun parse_TLV() {
// TODO
}
private fun byteArrayOfInts(vararg ints: Int) = ByteArray(ints.size) { pos -> ints[pos].toByte() }
}