mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Fix bigint hex parsing #1945.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user