Skip to content

Commit a9ac81a

Browse files
committed
fix: two-tier parity bounds (tight default, smoke via SECRYST_E2E_SMOKE)
1 parent e974ab5 commit a9ac81a

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

‎spec/interscript/ml/golden_spec.rb‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,11 @@
4242
got = out.chars
4343
d = (0...[exp.length, got.length].min).count { |j| exp[j] != got[j] }
4444
total_diffs += d
45-
expect(d.to_f / exp.length).to be < 0.02, row["input"][0, 60]
45+
row_bound = ENV["SECRYST_E2E_SMOKE"] == "1" ? 0.05 : 0.02
46+
expect(d.to_f / exp.length).to be < row_bound, row["input"][0, 60]
4647
end
47-
expect(total_diffs.to_f / total_chars).to be < 0.005
48+
corpus_bound = ENV["SECRYST_E2E_SMOKE"] == "1" ? 0.02 : 0.005
49+
expect(total_diffs.to_f / total_chars).to be < corpus_bound
4850
end
4951
end
5052
end

0 commit comments

Comments
 (0)