blob: c170fc444a632070051afa6a7e40a5467c46495f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
// Tests issue #2637 https://github.com/odin-lang/Odin/issues/2637
package test_issues
import "core:testing"
Foo :: Maybe(string)
@(test)
test_expect_value_succeeds_with_nil :: proc(t: ^testing.T) {
x: Foo
testing.expect(t, x == nil) // Succeeds
testing.expect_value(t, x, nil) // Fails, "expected nil, got nil"
}
|