Browse Source

Added missing test for "HasFlags"

Simon Lübeß 6 months ago
parent
commit
a4a25d4353
1 changed files with 3 additions and 0 deletions
  1. 3 0
      IDEHelper/Tests/src/Enums.bf

+ 3 - 0
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;