@@ -38,22 +38,22 @@ const rgb = mecha.combine(.{
38
38
test "rgb" {
39
39
const testing = std.testing;
40
40
const allocator = testing.allocator;
41
- const a = (try rgb.parse(allocator, "#aabbcc")).ok. value;
41
+ const a = (try rgb.parse(allocator, "#aabbcc")).value.ok ;
42
42
try testing.expectEqual(@as(u8, 0xaa), a.r);
43
43
try testing.expectEqual(@as(u8, 0xbb), a.g);
44
44
try testing.expectEqual(@as(u8, 0xcc), a.b);
45
45
46
- const b = (try rgb.parse(allocator, "#abc")).ok. value;
46
+ const b = (try rgb.parse(allocator, "#abc")).value.ok ;
47
47
try testing.expectEqual(@as(u8, 0xaa), b.r);
48
48
try testing.expectEqual(@as(u8, 0xbb), b.g);
49
49
try testing.expectEqual(@as(u8, 0xcc), b.b);
50
50
51
- const c = (try rgb.parse(allocator, "#000000")).ok. value;
51
+ const c = (try rgb.parse(allocator, "#000000")).value.ok ;
52
52
try testing.expectEqual(@as(u8, 0), c.r);
53
53
try testing.expectEqual(@as(u8, 0), c.g);
54
54
try testing.expectEqual(@as(u8, 0), c.b);
55
55
56
- const d = (try rgb.parse(allocator, "#000")).ok. value;
56
+ const d = (try rgb.parse(allocator, "#000")).value.ok ;
57
57
try testing.expectEqual(@as(u8, 0), d.r);
58
58
try testing.expectEqual(@as(u8, 0), d.g);
59
59
try testing.expectEqual(@as(u8, 0), d.b);
0 commit comments