0.0.4-rc: fixed a bug in variable-size short field (rare situation and most often masked).
This commit is contained in:
1 parent
b7784fec18
commit
e1c78e2bbb
4 files changed
+63
-5
No files matched your search
@@ -65,4 +65,14 @@ class SmartintTest {
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
fun testCustom() {
|
||||
val x = 64000.toULong()
|
||||
val p = Smartint.encodeUnsigned(x)
|
||||
println(p.toDump())
|
||||
val y = Smartint.decodeUnsigned(p)
|
||||
println(y)
|
||||
assertEquals(y, x)
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user