Skip to content

Commit 802bf20

Browse files
hyperpolymathclaude
andcommitted
fix(ci): update hypatia binary detection in hypatia-scan workflow
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 351f2df commit 802bf20

5 files changed

Lines changed: 5 additions & 6 deletions

File tree

.github/workflows/hypatia-scan.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff 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

compiler/bet-eval/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
}

compiler/bet-wasm/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

runtime/bet-rt/src/random.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
}

runtime/bet-rt/src/value.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)