Skip to content

Commit 0948671

Browse files
committed
Use speeds from IHO doc
1 parent 86fb676 commit 0948671

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

packages/tide-predictor/test/constituents/index.test.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,7 @@ describe("Base constituent definitions", () => {
132132

133133
it("has correct properties for 2MS6 (quarter-diurnal M2-S2 interaction)", () => {
134134
expect(constituents["2MS6"]).toBeDefined();
135-
const expectedSpeed = 2 * constituents.M2.speed(testAstro) + constituents.S2.speed(testAstro);
136-
expect(constituents["2MS6"].speed(testAstro)).toBeCloseTo(expectedSpeed, 2);
135+
expect(constituents["2MS6"].speed(testAstro)).toBeCloseTo(87.9682085, 7);
137136
});
138137

139138
it("has correct properties for 2MK5 (quinte-diurnal M2-K1 interaction)", () => {
@@ -144,7 +143,6 @@ describe("Base constituent definitions", () => {
144143

145144
it("has correct properties for 2MO5 (quinte-diurnal M2-O1 interaction)", () => {
146145
expect(constituents["2MO5"]).toBeDefined();
147-
const expectedSpeed = 2 * constituents.M2.speed(testAstro) + constituents.O1.speed(testAstro);
148-
expect(constituents["2MO5"].speed(testAstro)).toBeCloseTo(expectedSpeed, 2);
146+
expect(constituents["2MO5"].speed(testAstro)).toBeCloseTo(71.911244, 6);
149147
});
150148
});

0 commit comments

Comments
 (0)