Skip to content
Merged
Prev Previous commit
Next Next commit
Add snapshot test for nested BoolOp bytecode
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
  • Loading branch information
moreal and claude committed Feb 17, 2026
commit 9a2d780903bcac329414b71a69e4365ecc388bdb
9 changes: 9 additions & 0 deletions crates/codegen/src/compile.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9092,6 +9092,15 @@ if (True and False) or (False and True):
));
}

#[test]
fn test_nested_bool_op() {
assert_dis_snapshot!(compile_exec(
"\
x = Test() and False or False
"
));
}

#[test]
fn test_nested_double_async_with() {
assert_dis_snapshot!(compile_exec(
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.