Fix bigint hex parsing #1945.

This commit is contained in:
Christoffer Lerno
2025-02-08 19:06:06 +01:00
parent c8e671d34b
commit 68b5c1e1f1
3 changed files with 9 additions and 2 deletions

View File

@@ -1,5 +1,11 @@
module std::math::bigint @test;
fn void test_parse16()
{
BigInt bi @noinit;
assert(bi.init_string_radix("c", 16)!!.equals(bigint::from_int(12)));
}
fn void test_plus()
{
BigInt a = bigint::from_int(123);