aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2022-07-11 11:55:49 +0100
committergingerBill <bill@gingerbill.org>2022-07-11 11:55:49 +0100
commitae9d540c1c77bfc84a4fff964e218aebcb0c2680 (patch)
tree7a80557e7727441c7b6a3ee12548c5b459289778 /tests
parentc90b7c38f1a54e1f6bc144bea76b976f7c126644 (diff)
Correct naming in tests
Diffstat (limited to 'tests')
-rw-r--r--tests/core/encoding/varint/test_core_varint.odin6
-rw-r--r--tests/core/encoding/xml/test_core_xml.odin2
2 files changed, 4 insertions, 4 deletions
diff --git a/tests/core/encoding/varint/test_core_varint.odin b/tests/core/encoding/varint/test_core_varint.odin
index 2c3669afa..ee1798aa7 100644
--- a/tests/core/encoding/varint/test_core_varint.odin
+++ b/tests/core/encoding/varint/test_core_varint.odin
@@ -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)
}
diff --git a/tests/core/encoding/xml/test_core_xml.odin b/tests/core/encoding/xml/test_core_xml.odin
index a17594b7e..3cfc75a65 100644
--- a/tests/core/encoding/xml/test_core_xml.odin
+++ b/tests/core/encoding/xml/test_core_xml.odin
@@ -281,7 +281,7 @@ doc_to_string :: proc(doc: ^xml.Document) -> (result: string) {
}
buf: strings.Builder
- defer strings.destroy_builder(&buf)
+ defer strings.builder_destroy(&buf)
print(strings.to_writer(&buf), doc)
return strings.clone(strings.to_string(buf))