aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIsaac Freund <ifreund@ifreund.xyz>2020-06-28 00:35:38 +0200
committerIsaac Freund <ifreund@ifreund.xyz>2020-06-28 00:35:38 +0200
commit7f2e2610e384a550e94d84af1134b5472de62eec (patch)
tree628c02f0dc1b7111fb3f26471749f5432938a197
parentb6ef4c5a1ab335337bdab7cc73e564c454d98aa5 (diff)
downloadriver-7f2e2610e384a550e94d84af1134b5472de62eec.tar.gz
river-7f2e2610e384a550e94d84af1134b5472de62eec.tar.xz
code: fix tests
-rw-r--r--river/view_stack.zig20
1 files changed, 10 insertions, 10 deletions
diff --git a/river/view_stack.zig b/river/view_stack.zig
index 2082591..ea344d1 100644
--- a/river/view_stack.zig
+++ b/river/view_stack.zig
@@ -282,28 +282,28 @@ test "iteration (View)" {
const one_a_pb = try allocator.create(ViewStack(View).Node);
defer allocator.destroy(one_a_pb);
- one_a_pb.view.current_tags = 1 << 0;
- one_a_pb.view.pending_tags = 1 << 1;
+ one_a_pb.view.current.tags = 1 << 0;
+ one_a_pb.view.pending.tags = 1 << 1;
const two_a = try allocator.create(ViewStack(View).Node);
defer allocator.destroy(two_a);
- two_a.view.current_tags = 1 << 0;
- two_a.view.pending_tags = null;
+ two_a.view.current.tags = 1 << 0;
+ two_a.view.pending.tags = 1 << 0;
const three_b_pa = try allocator.create(ViewStack(View).Node);
defer allocator.destroy(three_b_pa);
- three_b_pa.view.current_tags = 1 << 1;
- three_b_pa.view.pending_tags = 1 << 0;
+ three_b_pa.view.current.tags = 1 << 1;
+ three_b_pa.view.pending.tags = 1 << 0;
const four_b = try allocator.create(ViewStack(View).Node);
defer allocator.destroy(four_b);
- four_b.view.current_tags = 1 << 1;
- four_b.view.pending_tags = null;
+ four_b.view.current.tags = 1 << 1;
+ four_b.view.pending.tags = 1 << 1;
const five_b = try allocator.create(ViewStack(View).Node);
defer allocator.destroy(five_b);
- five_b.view.current_tags = 1 << 1;
- five_b.view.pending_tags = null;
+ five_b.view.current.tags = 1 << 1;
+ five_b.view.pending.tags = 1 << 1;
views.push(three_b_pa); // {3}
views.push(one_a_pb); // {1, 3}