summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2015-07-05 22:30:02 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-07-05 22:30:02 -0700
commit5766d1894c2fb3e5343ee12ce188d48e38b56e24 (patch)
tree414a254a89199821427dc5624cf3d79aea25e21b /tests
parent35b4af913b5cabc0d80aac6794feb43608653ea4 (diff)
downloadsubsurface-5766d1894c2fb3e5343ee12ce188d48e38b56e24.tar.gz
Adapt the test to the API change
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'tests')
-rw-r--r--tests/testplan.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/testplan.cpp b/tests/testplan.cpp
index f08cfdeeb..8fa09213b 100644
--- a/tests/testplan.cpp
+++ b/tests/testplan.cpp
@@ -40,8 +40,8 @@ void setupPlan(struct diveplan *dp)
int droptime = M_OR_FT(79, 260) * 60 / M_OR_FT(23, 75);
plan_add_segment(dp, droptime, M_OR_FT(79, 260), bottomgas, 0, 1);
plan_add_segment(dp, 30*60 - droptime, M_OR_FT(79, 260), bottomgas, 0, 1);
- plan_add_segment(dp, 0, gas_mod(&ean36, po2, M_OR_FT(3,10)).mm, ean36, 0, 1);
- plan_add_segment(dp, 0, gas_mod(&oxygen, po2, M_OR_FT(3,10)).mm, oxygen, 0, 1);
+ plan_add_segment(dp, 0, gas_mod(&ean36, po2, &displayed_dive, M_OR_FT(3,10)).mm, ean36, 0, 1);
+ plan_add_segment(dp, 0, gas_mod(&oxygen, po2, &displayed_dive, M_OR_FT(3,10)).mm, oxygen, 0, 1);
}
void TestPlan::testMetric()