Strip old test runner back out of internal, issues and vendor

This commit is contained in:
Jeroen van Rijn
2024-06-02 21:15:25 +02:00
parent 9d8d864400
commit 60d0c03134
16 changed files with 282 additions and 582 deletions
+3 -4
View File
@@ -1,7 +1,6 @@
// Tests issue #829 https://github.com/odin-lang/Odin/issues/829
package test_issues
import "core:fmt"
import "core:testing"
/* Original issue #829 example */
@@ -13,6 +12,6 @@ env : map[string]proc(a, b : int) -> int = {
@(test)
test_orig_ret :: proc(t: ^testing.T) {
r := fmt.tprint(env["+"](1, 2))
testing.expect(t, r == "3", fmt.tprintf("%s: \"%s\" != \"3\"\n", #procedure, r))
}
r := env["+"](1, 2)
testing.expectf(t, r == 3, "%q != 3", r)
}