We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9f4aa8a commit 6a61148Copy full SHA for 6a61148
test/cpp/src/Enum.cpp
@@ -494,6 +494,15 @@ void Enum_add_enum_constant(void) {
494
test_assert(id == ecs.pair(r, c));
495
}
496
497
+void Enum_add_enum_constant_explicit(void) {
498
+ flecs::world ecs;
499
+
500
+ auto e = ecs.entity().add<StandardEnum>(StandardEnum::Red);
501
+ test_assert(e.has<StandardEnum>(StandardEnum::Red));
502
+ test_assert(!e.has<StandardEnum>(StandardEnum::Green));
503
+ test_assert(!e.has<StandardEnum>(StandardEnum::Blue));
504
+}
505
506
void Enum_add_enum_class_constant(void) {
507
flecs::world ecs;
508
0 commit comments