File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -39,11 +39,10 @@ jobs:
3939 - name : Build Hypatia scanner (if needed)
4040 working-directory : ${{ env.HOME }}/hypatia
4141 run : |
42- if [ ! -f hypatia-v2 ]; then
42+ if [ ! -f hypatia ] && [ ! -f hypatia -v2 ]; then
4343 echo "Building hypatia-v2 scanner..."
4444 mix deps.get
4545 mix escript.build
46- mv hypatia hypatia-v2
4746 fi
4847
4948 - name : Run Hypatia scan
Original file line number Diff line number Diff line change @@ -484,7 +484,7 @@ mod tests {
484484 let val = eval ( & expr, & mut env) . unwrap ( ) ;
485485 match val {
486486 Value :: Int ( n) => assert ! ( n >= 1 && n <= 3 ) ,
487- _ => panic ! ( "Expected Int" ) ,
487+ other => panic ! ( "Expected Int, got {other:?} " ) ,
488488 }
489489 }
490490 }
Original file line number Diff line number Diff line change @@ -682,7 +682,7 @@ mod tests {
682682 Err ( WasmError :: HeapOverflow { requested, .. } ) => {
683683 assert_eq ! ( requested, 10000 ) ;
684684 }
685- _ => panic ! ( "expected HeapOverflow" ) ,
685+ other => panic ! ( "expected HeapOverflow, got {other:?} " ) ,
686686 }
687687 }
688688
Original file line number Diff line number Diff line change @@ -630,7 +630,7 @@ mod tests {
630630 let sample = dist. sample ( ) . unwrap ( ) ;
631631 match sample {
632632 Value :: Int ( n) => assert ! ( ( 1 ..=3 ) . contains( & n) ) ,
633- _ => panic ! ( "Expected Int" ) ,
633+ other => panic ! ( "Expected Int, got {other:?} " ) ,
634634 }
635635 }
636636 }
Original file line number Diff line number Diff line change @@ -483,7 +483,7 @@ mod tests {
483483 let sample = dist. sample ( ) . unwrap ( ) ;
484484 match sample {
485485 Value :: Int ( n) => assert ! ( n >= 1 && n <= 3 ) ,
486- _ => panic ! ( "Expected Int" ) ,
486+ other => panic ! ( "Expected Int, got {other:?} " ) ,
487487 }
488488 }
489489 }
You can’t perform that action at this time.
0 commit comments