Correct naming in tests

This commit is contained in:
gingerBill
2022-07-11 11:55:49 +01:00
parent c90b7c38f1
commit ae9d540c1c
5 changed files with 7 additions and 7 deletions
@@ -79,8 +79,8 @@ test_leb128 :: proc(t: ^testing.T) {
}
}
for num_bytes in 1..uint(16) {
for _ in 0..RANDOM_TESTS {
for num_bytes in 1..=uint(16) {
for _ in 0..=RANDOM_TESTS {
unsigned, signed := get_random(num_bytes)
{
@@ -109,7 +109,7 @@ test_leb128 :: proc(t: ^testing.T) {
get_random :: proc(byte_count: uint) -> (u: u128, i: i128) {
assert(byte_count >= 0 && byte_count <= size_of(u128))
for _ in 1..byte_count {
for _ in 1..=byte_count {
u <<= 8
u |= u128(rand.uint32() & 0xff)
}