From 371911b1b52f6abb126342304391b89d9c9accc7 Mon Sep 17 00:00:00 2001 From: Timothy Date: Wed, 14 Jul 2021 01:16:55 +1000 Subject: [PATCH] AK/Tests: Add test for EnumBits has_flag() This test requires that all values in the mask are present in the value as well. --- Tests/AK/TestEnumBits.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Tests/AK/TestEnumBits.cpp b/Tests/AK/TestEnumBits.cpp index dc9eadf32d1..f49e13b2635 100644 --- a/Tests/AK/TestEnumBits.cpp +++ b/Tests/AK/TestEnumBits.cpp @@ -66,4 +66,5 @@ TEST_CASE(has_flag) auto intro = VideoIntro::Hello | VideoIntro::Friends; EXPECT(has_flag(intro, VideoIntro::Friends)); EXPECT(!has_flag(intro, VideoIntro::Well)); + EXPECT(!has_flag(intro, VideoIntro::CompleteIntro)); }