mirror of
https://github.com/vlang/v.git
synced 2025-09-13 14:32:26 +03:00
ci: fix compilation of term.ui examples on windows
This commit is contained in:
parent
4e2b908f21
commit
dd96852515
3 changed files with 19 additions and 1 deletions
|
@ -175,3 +175,16 @@ fn test_rand_f64_in_range() {
|
|||
assert value < max
|
||||
}
|
||||
}
|
||||
|
||||
fn test_rand_byte() {
|
||||
mut all := []byte{}
|
||||
for _ in 0 .. 256 {
|
||||
x := rand.byte()
|
||||
assert x >= 0
|
||||
assert x <= 255
|
||||
all << x
|
||||
}
|
||||
all.sort(a < b)
|
||||
assert all[0] != all[255]
|
||||
assert all[0] != all[128]
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue