aboutsummaryrefslogtreecommitdiff
path: root/lib/std/bounded_array.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2024-03-13 15:56:09 -0700
committerAndrew Kelley <andrew@ziglang.org>2024-03-21 14:11:46 -0700
commit12191c8a220ca5594b278b5077bff98e8fecac08 (patch)
treece6552d68161c363dd18826220febbaa7f733c62 /lib/std/bounded_array.zig
parent5ae838d10596a272644da314937b01aa1a271a73 (diff)
downloadzig-12191c8a220ca5594b278b5077bff98e8fecac08.tar.gz
zig-12191c8a220ca5594b278b5077bff98e8fecac08.zip
std: promote tests to doctests
Now these show up as "example usage" in generated documentation.
Diffstat (limited to 'lib/std/bounded_array.zig')
-rw-r--r--lib/std/bounded_array.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/std/bounded_array.zig b/lib/std/bounded_array.zig
index 9867754dcd..d41857013c 100644
--- a/lib/std/bounded_array.zig
+++ b/lib/std/bounded_array.zig
@@ -287,7 +287,7 @@ pub fn BoundedArrayAligned(
};
}
-test "BoundedArray" {
+test BoundedArray {
var a = try BoundedArray(u8, 64).init(32);
try testing.expectEqual(a.capacity(), 64);