0.0.4-rc: fixed a bug in variable-size short field (rare situation and most often masked).

This commit is contained in:
sergeych committed 2023-10-07 01:50:26 +01:00
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)
}
}