mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 07:38:48 +00:00
Fix tests
This commit is contained in:
@@ -50,7 +50,7 @@ check_expression_with_flags :: proc(t: ^testing.T, pattern: string, flags: regex
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
check_expression :: proc(t: ^testing.T, pattern, haystack: string, needles: ..string, extra_flags: regex.Flags = {}, loc := #caller_location) {
|
check_expression :: proc(t: ^testing.T, pattern, haystack: string, needles: ..string, extra_flags := regex.Flags{}, loc := #caller_location) {
|
||||||
check_expression_with_flags(t, pattern, { .Global } + extra_flags,
|
check_expression_with_flags(t, pattern, { .Global } + extra_flags,
|
||||||
haystack, ..needles, loc = loc)
|
haystack, ..needles, loc = loc)
|
||||||
check_expression_with_flags(t, pattern, { .Global, .No_Optimization } + extra_flags,
|
check_expression_with_flags(t, pattern, { .Global, .No_Optimization } + extra_flags,
|
||||||
@@ -61,7 +61,7 @@ check_expression :: proc(t: ^testing.T, pattern, haystack: string, needles: ..st
|
|||||||
haystack, ..needles, loc = loc)
|
haystack, ..needles, loc = loc)
|
||||||
}
|
}
|
||||||
|
|
||||||
expect_error :: proc(t: ^testing.T, pattern: string, expected_error: typeid, flags: regex.Flags = {}, loc := #caller_location) {
|
expect_error :: proc(t: ^testing.T, pattern: string, expected_error: typeid, flags := regex.Flags{}, loc := #caller_location) {
|
||||||
rex, err := regex.create(pattern, flags)
|
rex, err := regex.create(pattern, flags)
|
||||||
regex.destroy(rex)
|
regex.destroy(rex)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user