File tree Expand file tree Collapse file tree 1 file changed +8
-11
lines changed
ton-kotlin-hashmap/src/jvmTest/kotlin Expand file tree Collapse file tree 1 file changed +8
-11
lines changed Original file line number Diff line number Diff line change @@ -4,17 +4,14 @@ import org.ton.crypto.hex
44import org.ton.hashmap.HmEdge
55import org.ton.tlb.constructor.AnyTlbConstructor
66
7- class TestDict {
8- @Test
9- fun test () {
10- val cell =
11- BagOfCells (hex(runCmd(" fift -I /usr/local/lib/fift/ /Users/andreypfau/IdeaProjects/ton-kotlin/ton-kotlin-hashmap/src/jvmTest/resources/test.fif" ))).first()
12- val codec = HmEdge .tlbCodec(4 , AnyTlbConstructor )
13- val map = codec.loadTlb(cell)
14- println (map.toString())
15- map.forEach {
16- println (" ${it.first.toBinary()} = ${it.second.bits.toBinary()} " )
17- }
7+ fun main () {
8+ val cell =
9+ BagOfCells (hex(runCmd(" fift -I /usr/local/lib/fift/ /Users/andreypfau/IdeaProjects/ton-kotlin/ton-kotlin-hashmap/src/jvmTest/resources/test.fif" ))).first()
10+ val codec = HmEdge .tlbCodec(4 , AnyTlbConstructor )
11+ val map = codec.loadTlb(cell)
12+ println (map.toString())
13+ map.forEach {
14+ println (" ${it.first.toBinary()} = ${it.second.bits.toBinary()} " )
1815 }
1916}
2017
You can’t perform that action at this time.
0 commit comments