diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2012-09-03 10:31:25 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2012-09-03 10:31:25 -0700 |
commit | 2a1d7a510c60ad26e456b40e4f34caeb145339e3 (patch) | |
tree | b266f18e517413f27ea4f64dffa2f8398f06ebe9 /dives | |
parent | 1f252fedd1c53bb347ff79740f6dcad32691f0cd (diff) | |
download | subsurface-2a1d7a510c60ad26e456b40e4f34caeb145339e3.tar.gz |
Correct the trip related test dives
They still had the old "date only" format, but the code now relies on date
and time being both set.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'dives')
-rw-r--r-- | dives/test21.xml | 2 | ||||
-rw-r--r-- | dives/test22.xml | 2 | ||||
-rw-r--r-- | dives/test23.xml | 9 |
3 files changed, 9 insertions, 4 deletions
diff --git a/dives/test21.xml b/dives/test21.xml index 5f5f6c981..ce6b82f35 100644 --- a/dives/test21.xml +++ b/dives/test21.xml @@ -1,6 +1,6 @@ <dives> <program name='subsurface' version='1'></program> -<trip date='2011-12-02' /> +<trip date='2011-12-02' time='14:00:00' /> <dive number='20' tripflag='INTRIP' date='2011-12-02' time='14:00:00' duration='30:00 min'> <depth max='20.0 m' mean='15.0 m' /> <location>20th test dive - this should be in a trip with same location</location> diff --git a/dives/test22.xml b/dives/test22.xml index a61032327..e8112287d 100644 --- a/dives/test22.xml +++ b/dives/test22.xml @@ -1,6 +1,6 @@ <dives> <program name='subsurface' version='1'></program> -<trip date='2011-12-02' location='trip location' /> +<trip date='2011-12-02' location='trip location' time='15:00:00' /> <dive number='21' tripflag='INTRIP' date='2011-12-02' time='15:00:00' duration='30:00 min'> <depth max='20.0 m' mean='15.0 m' /> <location>21st test dive - this should be in a trip with a trip location</location> diff --git a/dives/test23.xml b/dives/test23.xml index c61ad2db9..defdfdd90 100644 --- a/dives/test23.xml +++ b/dives/test23.xml @@ -1,7 +1,12 @@ <dives> <program name='subsurface' version='1'></program> -<trip date='2011-12-02' location='trip location' /> -<dive number='22' tripflag='NOTRIP' date='2011-12-09' time='6:00:00' duration='30:00 min'> +<trip date='2011-12-02' time='6:00:00' location='trip location' /> +<dive number='23' tripflag='INTRIP' date='2011-12-02' time='6:00:00' duration='30:00 min'> + <depth max='20.0 m' mean='15.0 m' /> + <location>23rd test dive - this should be in a trip</location> + <notes>We are testing that the NOTRIP flag works</notes> +</dive> +<dive number='22' tripflag='NOTRIP' date='2011-12-03' time='7:00:00' duration='30:00 min'> <depth max='20.0 m' mean='15.0 m' /> <location>22nd test dive - this should not be in a trip</location> <notes>We are testing that the NOTRIP flag works</notes> |