We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2944710 commit 366f3d6Copy full SHA for 366f3d6
1 file changed
vlib/math/big/big_test.v
@@ -719,6 +719,16 @@ fn test_from_and_to_hex() {
719
}
720
721
722
+fn test_radix() {
723
+ number := '1234567890123456789012345678901234567890'
724
+ a := big.integer_from_radix(number, 10)!
725
+ for radix in 2 .. 37 {
726
+ str := a.radix_str(radix)
727
+ b := big.integer_from_radix(str, radix)!
728
+ assert b.str() == number
729
+ }
730
+}
731
+
732
fn test_str() {
733
for t in str_test_data {
734
assert t.value.parse().str() == t.expected
0 commit comments