mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-09 09:34:57 +09: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
Notes:
sideshowbarker
2024-07-18 08:56:51 +09:00
Author: https://github.com/timmot
Commit: 371911b1b5
Pull-request: https://github.com/SerenityOS/serenity/pull/8724
Reviewed-by: https://github.com/bgianfo ✅
Reviewed-by: https://github.com/kleinesfilmroellchen ✅
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