2020-12-05 07:37:07 +00:00
|
|
|
const std = @import("std");
|
|
|
|
const testing = std.testing;
|
|
|
|
|
|
|
|
pub const Entity = struct {
|
2020-12-05 09:10:29 +00:00
|
|
|
ID: usize
|
2020-12-05 07:37:07 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
test "entity init" {
|
2020-12-05 09:10:29 +00:00
|
|
|
const e1 = Entity { .ID = 12 };
|
|
|
|
const e2 = Entity { .ID = 21 };
|
2020-12-05 07:37:07 +00:00
|
|
|
|
|
|
|
testing.expect(e1.ID == 12);
|
|
|
|
testing.expect(e2.ID == 21);
|
|
|
|
}
|