File tree Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -623,7 +623,6 @@ impl From<JetFailed> for ExecutionError {
623
623
624
624
#[ cfg( test) ]
625
625
mod tests {
626
- #[ cfg( feature = "elements" ) ]
627
626
use super :: * ;
628
627
629
628
#[ cfg( feature = "elements" ) ]
@@ -710,4 +709,20 @@ mod tests {
710
709
) ;
711
710
assert_eq ! ( res. unwrap( ) , Value :: unit( ) ) ;
712
711
}
712
+
713
+ #[ test]
714
+ fn crash_regression2 ( ) {
715
+ use crate :: node:: { CoreConstructible as _, JetConstructible as _} ;
716
+
717
+ type Node = Arc < crate :: ConstructNode < crate :: jet:: Core > > ;
718
+
719
+ let mut bomb = Node :: jet (
720
+ & crate :: types:: Context :: new ( ) ,
721
+ crate :: jet:: Core :: Ch8 , // arbitrary jet with nonzero output size
722
+ ) ;
723
+ for _ in 0 ..100 {
724
+ bomb = Node :: pair ( & bomb, & bomb) . unwrap ( ) ;
725
+ }
726
+ let _ = bomb. finalize_pruned ( & ( ) ) ;
727
+ }
713
728
}
You can’t perform that action at this time.
0 commit comments