From 701fbfb4db94d8819fb0c092b38c0f738b073b1f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20Partheym=C3=BCller?= Date: Wed, 8 Feb 2023 11:40:42 +0100 Subject: [PATCH] invoke singletons() function to satisfy compiler --- zig-ecs/tests/registry_test.zig | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/zig-ecs/tests/registry_test.zig b/zig-ecs/tests/registry_test.zig index 7549220..10d5cf1 100644 --- a/zig-ecs/tests/registry_test.zig +++ b/zig-ecs/tests/registry_test.zig @@ -82,12 +82,12 @@ test "singletons" { defer reg.deinit(); var pos = Position{ .x = 5, .y = 5 }; - reg.singletons.add(pos); - try std.testing.expect(reg.singletons.has(Position)); - try std.testing.expectEqual(reg.singletons.get(Position).*, pos); + reg.singletons().add(pos); + try std.testing.expect(reg.singletons().has(Position)); + try std.testing.expectEqual(reg.singletons().get(Position).*, pos); - reg.singletons.remove(Position); - try std.testing.expect(!reg.singletons.has(Position)); + reg.singletons().remove(Position); + try std.testing.expect(!reg.singletons().has(Position)); } test "destroy" {