1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

math: implement pow in pure V (#12105)

This commit is contained in:
playX
2021-10-08 17:44:55 +03:00
committed by GitHub
parent 60add6cc28
commit a8ace2c41c
10 changed files with 222 additions and 69 deletions

View File

@ -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'