Fix -vet and -strict-style failures in tests

This commit is contained in:
Feoramund
2024-08-26 16:20:08 -04:00
parent 60cd0da2ed
commit 1f04f541cf
5 changed files with 20 additions and 21 deletions
+1 -1
View File
@@ -187,7 +187,7 @@ validate_rbtree :: proc(t: ^testing.T, tree: ^$T/rb.Tree($Key, $Value)) {
}
verify_rbtree_propery_1 :: proc(t: ^testing.T, n: ^$N/rb.Node($Key, $Value)) {
testing.expect(t, rb.node_color(n) == .Black || rb.node_color(n) == .Red, "Property #1: Each node is either red or black.")
testing.expect(t, rb.node_color(n) == .Black || rb.node_color(n) == .Red, "Property #1: Each node is either red or black.")
if n == nil {
return
}