We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 577794b commit 0d4ec4dCopy full SHA for 0d4ec4d
1 file changed
tests/test_parser.py
@@ -497,6 +497,7 @@ def test_preprocessor_define_from_enum_in_struct() -> None:
497
};
498
499
#define FLAG_SYNACK flags.SYN | flags.ACK
500
+ #define FLAG_BIG flags.PSH | YOMOMMA
501
502
#ifndef NO_PAYLOAD
503
#ifdef HAS_OPTIONS
@@ -516,6 +517,7 @@ def test_preprocessor_define_from_enum_in_struct() -> None:
516
517
518
assert cs.consts["PROTO"] == 6
519
assert cs.consts["FLAG_SYNACK"] == 3
520
+ assert cs.consts["FLAG_BIG"] == "flags.PSH|YOMOMMA"
521
522
assert "type" in cs.packet.fields
523
assert "options" in cs.packet.fields
0 commit comments