File tree Expand file tree Collapse file tree 3 files changed +6
-8
lines changed Expand file tree Collapse file tree 3 files changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -51,11 +51,4 @@ mod tests {
5151 extend_vec_from_hex ( "00" , & mut a) ;
5252 super :: do_test ( & a) ;
5353 }
54-
55- #[ test]
56- fn duplicate_crash_2 ( ) {
57- let mut a = Vec :: new ( ) ;
58- extend_vec_from_hex ( "746872657368" , & mut a) ; // thresh
59- super :: do_test ( & a) ;
60- }
6154}
Original file line number Diff line number Diff line change @@ -445,4 +445,4 @@ pub fn script_num_size(n: usize) -> usize {
445445fn hex_script ( s : & str ) -> bitcoin:: Script {
446446 let v: Vec < u8 > = bitcoin:: hashes:: hex:: FromHex :: from_hex ( s) . unwrap ( ) ;
447447 bitcoin:: Script :: from ( v)
448- }
448+ }
Original file line number Diff line number Diff line change @@ -485,6 +485,11 @@ mod tests {
485485 )"
486486 )
487487 . is_ok( ) ) ;
488+
489+ assert_eq ! (
490+ StringPolicy :: from_str( "thresh" ) . unwrap_err( ) . to_string( ) ,
491+ "unexpected «thresh without args»"
492+ ) ;
488493 }
489494
490495 #[ test]
You can’t perform that action at this time.
0 commit comments