std: promote tests to doctests
Now these show up as "example usage" in generated documentation.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user