| ... | @@ -360,9 +360,3 @@ test "access the null element of a null terminated array" { | ... | @@ -360,9 +360,3 @@ test "access the null element of a null terminated array" { |
| 360 | S.doTheTest(); | 360 | S.doTheTest(); |
| 361 | comptime S.doTheTest(); | 361 | comptime S.doTheTest(); |
| 362 | } | 362 | } |
| 363 | | | |
| 364 | test "type coerce sentinel-terminated array to non-sentinel-terminated array" { | | |
| 365 | var array: [2]u8 = [_:255]u8{1, 2}; | | |
| 366 | expect(array[0] == 1); | | |
| 367 | expect(array[1] == 2); | | |
| 368 | } | | |