Skip to content

Commit

Permalink
Added a test for manifests with yield to child
Browse files Browse the repository at this point in the history
  • Loading branch information
0xOmarA committed Dec 13, 2024
1 parent e44b019 commit 9061fa8
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions crates/radix-engine-toolkit/tests/transaction_types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2503,6 +2503,21 @@ fn account_locker_is_recognized_as_general_transaction() {
assert_eq!(dynamic_analysis.new_entities, NewEntities::default());
}

#[test]
fn manifest_with_yield_to_child_has_no_classifications() {
// Arrange
let manifest = ManifestBuilder::new_v2()
.use_child("example", SubintentHash(Hash([0; 32])))
.yield_to_child("example", ())
.build();

// Act
let StaticAnalysis { classification, .. } = statically_analyze(&manifest);

// Assert
assert!(classification.is_empty());
}

#[test]
fn lock_fee_manifest_has_no_classification_except_general() {
// Arrange
Expand Down

0 comments on commit 9061fa8

Please sign in to comment.