use super::*;
#[test]
fn is_gating_edge_for_contract_behaves_as_expected() {
assert!(is_gating_edge_for_contract(
false,
SourceContractStrictMode::Abort
));
assert!(is_gating_edge_for_contract(
false,
SourceContractStrictMode::Warn
));
assert!(is_gating_edge_for_contract(
true,
SourceContractStrictMode::Abort
));
assert!(
!is_gating_edge_for_contract(true, SourceContractStrictMode::Warn),
"source edges should be non-gating when strict mode is Warn"
);
}