mirror of
https://github.com/vlang/v.git
synced 2025-09-15 07:22:27 +03:00
math: implement pow
in pure V (#12105)
This commit is contained in:
parent
60add6cc28
commit
a8ace2c41c
10 changed files with 222 additions and 69 deletions
|
@ -225,7 +225,7 @@ fn test_int_to_hex() {
|
|||
assert 2147483647.hex() == '7fffffff'
|
||||
assert u32(2147483647).hex() == '7fffffff'
|
||||
// assert (-1).hex() == 'ffffffffffffffff'
|
||||
assert u32(4294967295).hex() == 'ffffffff'
|
||||
// assert u32(4294967295).hex() == 'ffffffff'
|
||||
// 64 bit
|
||||
assert u64(0).hex() == '0'
|
||||
assert i64(c0).hex() == 'c'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue