fix typo in new mem.len test

This commit is contained in:
Andrew Kelley 2020-03-15 15:57:51 -04:00
parent e369789062
commit 7e45a3ef6a

View File

@ -606,7 +606,7 @@ test "len" {
testing.expect(len(ptr) == 2);
}
{
var array: [5:0]u16 = [_]u16{ 1, 2, 3, 4, 5 };
var array: [5:0]u16 = [_:0]u16{ 1, 2, 3, 4, 5 };
testing.expect(len(&array) == 5);
array[2] = 0;
testing.expect(len(&array) == 2);