Skip to content

Commit

Permalink
[C] update unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
alexgoff committed Jun 6, 2024
1 parent bc6f0e8 commit 70f95bf
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ describe("gaussianBump", () => {
it("should apply a Gaussian bump", () => {
const mag = gaussianBump(0, gaussianWidth);

expect(mag).toBe(-0.8788261256269516);
expect(mag).toBe(-0.9555024743866727);
});
});
describe("exponentialRise", () => {
it("should apply an exponential rise to a magnitude", () => {
const mag = gaussianBump(0, gaussianWidth);
const peak = exponentialRise(0, mag);

expect(peak).toBe(-1.0749187397807176);
expect(peak).toBe(-1.168703894518792);
});
});
describe("estimateMagnitudeWithOffset", () => {
Expand All @@ -29,6 +29,6 @@ describe("estimateMagnitudeWithOffset", () => {
const dm15 = Number((peak - mag15).toFixed(2));

expect(peak).toBeLessThan(mag15);
expect(dm15).toBe(-0.79);
expect(dm15).toBe(-1.05);
});
});

0 comments on commit 70f95bf

Please sign in to comment.