From a4a25d43537bae543bcea5a023558e5bc500cf18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20L=C3=BCbe=C3=9F?= Date: Sun, 16 Mar 2025 12:56:25 +0100 Subject: [PATCH] Added missing test for "HasFlags" --- IDEHelper/Tests/src/Enums.bf | 3 +++ 1 file changed, 3 insertions(+) diff --git a/IDEHelper/Tests/src/Enums.bf b/IDEHelper/Tests/src/Enums.bf index ac5d7082..07a12cbd 100644 --- a/IDEHelper/Tests/src/Enums.bf +++ b/IDEHelper/Tests/src/Enums.bf @@ -292,6 +292,9 @@ namespace Tests Test.Assert(sizeof(EnumN) == sizeof(System.Interop.c_int)); + Test.Assert(value.HasFlag(.A) == false); + Test.Assert(value.HasFlag(.B) == true); + Test.Assert(value.Underlying == 1); ref System.Interop.c_int valueRef = ref value.UnderlyingRef;