| ... | @@ -11,7 +11,7 @@ pub const Timetype = struct { | ... | @@ -11,7 +11,7 @@ pub const Timetype = struct { |
| 11 | flags: u8, | 11 | flags: u8, |
| 12 | name_data: [6:0]u8, | 12 | name_data: [6:0]u8, |
| 13 | | 13 | |
| 14 | pub fn name(self: Timetype) [:0]const u8 { | 14 | pub fn name(self: *const Timetype) [:0]const u8 { |
| 15 | return std.mem.sliceTo(self.name_data[0..], 0); | 15 | return std.mem.sliceTo(self.name_data[0..], 0); |
| 16 | } | 16 | } |
| 17 | | 17 | |
| ... | @@ -214,7 +214,6 @@ pub const Tz = struct { | ... | @@ -214,7 +214,6 @@ pub const Tz = struct { |
| 214 | }; | 214 | }; |
| 215 | | 215 | |
| 216 | test "slim" { | 216 | test "slim" { |
| 217 | if (@import("builtin").zig_backend != .stage1) return error.SkipZigTest; // TODO | | |
| 218 | const data = @embedFile("tz/asia_tokyo.tzif"); | 217 | const data = @embedFile("tz/asia_tokyo.tzif"); |
| 219 | var in_stream = std.io.fixedBufferStream(data); | 218 | var in_stream = std.io.fixedBufferStream(data); |
| 220 | | 219 | |
| ... | @@ -228,7 +227,6 @@ test "slim" { | ... | @@ -228,7 +227,6 @@ test "slim" { |
| 228 | } | 227 | } |
| 229 | | 228 | |
| 230 | test "fat" { | 229 | test "fat" { |
| 231 | if (@import("builtin").zig_backend != .stage1) return error.SkipZigTest; // TODO | | |
| 232 | const data = @embedFile("tz/antarctica_davis.tzif"); | 230 | const data = @embedFile("tz/antarctica_davis.tzif"); |
| 233 | var in_stream = std.io.fixedBufferStream(data); | 231 | var in_stream = std.io.fixedBufferStream(data); |
| 234 | | 232 | |
| ... | @@ -241,7 +239,6 @@ test "fat" { | ... | @@ -241,7 +239,6 @@ test "fat" { |
| 241 | } | 239 | } |
| 242 | | 240 | |
| 243 | test "legacy" { | 241 | test "legacy" { |
| 244 | if (@import("builtin").zig_backend != .stage1) return error.SkipZigTest; // TODO | | |
| 245 | // Taken from Slackware 8.0, from 2001 | 242 | // Taken from Slackware 8.0, from 2001 |
| 246 | const data = @embedFile("tz/europe_vatican.tzif"); | 243 | const data = @embedFile("tz/europe_vatican.tzif"); |
| 247 | var in_stream = std.io.fixedBufferStream(data); | 244 | var in_stream = std.io.fixedBufferStream(data); |