mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 21:57:35 +00:00
AK/Tests: Add test for EnumBits has_flag()
This test requires that all values in the mask are present in the value as well.
This commit is contained in:
parent
03b76e4ba0
commit
371911b1b5
1 changed files with 1 additions and 0 deletions
|
@ -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));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue