aboutsummaryrefslogtreecommitdiff
path: root/lib/std/testing.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2020-09-30 01:31:08 -0400
committerAndrew Kelley <andrew@ziglang.org>2020-09-30 01:31:08 -0400
commit14d6d07af2ce37569bce8b148599e31664de5f12 (patch)
tree83e2fb2a68b820cf1cbb030d6b6b2880ec383d9d /lib/std/testing.zig
parent839bdfdc93b1d2a2a4ed6f7c9ca3155323242d82 (diff)
downloadzig-14d6d07af2ce37569bce8b148599e31664de5f12.tar.gz
zig-14d6d07af2ce37569bce8b148599e31664de5f12.zip
fix the cli test expected string to support native path separators
Diffstat (limited to 'lib/std/testing.zig')
-rw-r--r--lib/std/testing.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/std/testing.zig b/lib/std/testing.zig
index 658d31bb82..ccbd1d6324 100644
--- a/lib/std/testing.zig
+++ b/lib/std/testing.zig
@@ -38,7 +38,7 @@ pub fn expectError(expected_error: anyerror, actual_error_union: anytype) void {
/// This function is intended to be used only in tests. When the two values are not
/// equal, prints diagnostics to stderr to show exactly how they are not equal,
/// then aborts.
-/// The types must match exactly.
+/// `actual` is casted to the type of `expected`.
pub fn expectEqual(expected: anytype, actual: @TypeOf(expected)) void {
switch (@typeInfo(@TypeOf(actual))) {
.NoReturn,