mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
builtin: new str(), hex() functions without C.printf
This commit is contained in:
@@ -111,7 +111,11 @@ fn test_int_alias() {
|
||||
|
||||
fn test_hex() {
|
||||
x := u64(10)
|
||||
assert x.hex() == '0xa'
|
||||
assert x.hex() == 'a'
|
||||
b := 1234
|
||||
assert b.hex() == '4d2'
|
||||
b1 := -1
|
||||
assert b1.hex() == 'ffffffff'
|
||||
}
|
||||
|
||||
fn test_oct() {
|
||||
|
||||
Reference in New Issue
Block a user