Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
andreypfau committed Jan 29, 2023
1 parent 04a0ef9 commit b4e3375
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions ton-kotlin-hashmap/src/jvmTest/kotlin/TestDict.kt
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,14 @@ import org.ton.crypto.hex
import org.ton.hashmap.HmEdge
import org.ton.tlb.constructor.AnyTlbConstructor

class TestDict {
@Test
fun test() {
val cell =
BagOfCells(hex(runCmd("fift -I /usr/local/lib/fift/ /Users/andreypfau/IdeaProjects/ton-kotlin/ton-kotlin-hashmap/src/jvmTest/resources/test.fif"))).first()
val codec = HmEdge.tlbCodec(4, AnyTlbConstructor)
val map = codec.loadTlb(cell)
println(map.toString())
map.forEach {
println("${it.first.toBinary()} = ${it.second.bits.toBinary()}")
}
fun main() {
val cell =
BagOfCells(hex(runCmd("fift -I /usr/local/lib/fift/ /Users/andreypfau/IdeaProjects/ton-kotlin/ton-kotlin-hashmap/src/jvmTest/resources/test.fif"))).first()
val codec = HmEdge.tlbCodec(4, AnyTlbConstructor)
val map = codec.loadTlb(cell)
println(map.toString())
map.forEach {
println("${it.first.toBinary()} = ${it.second.bits.toBinary()}")
}
}

Expand Down

0 comments on commit b4e3375

Please sign in to comment.