authorgravatar for robin@voetter.nlRobin Voetter <robin@voetter.nl> 2019-12-09 20:23:36+01:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2019-12-10 11:09:29-05:00
log23b901d45af9c1c3c662fc851be5d75154538c8e
treeed427868493ae3498d9b751695392dec7c785b1e
parent20a3011def8ce3f2f4482ab28e744bf1e9ec25f2
signature Commit is signed but in an unrecognized format.

Add typeOf/TypeOf render test


1 files changed, 11 insertions(+), 0 deletions(-)

lib/std/zig/parser_test.zig+11
......@@ -1,3 +1,14 @@
1// TODO: Remove condition after deprecating 'typeOf'. See https://github.com/ziglang/zig/issues/1348
2test "zig fmt: change @typeOf to @TypeOf" {
3 try testTransform(
4 \\const a = @typeOf(@as(usize, 10));
5 \\
6 ,
7 \\const a = @TypeOf(@as(usize, 10));
8 \\
9 );
10}
11
112test "zig fmt: comptime struct field" {
213 try testCanonical(
314 \\const Foo = struct {