Some simple test dives for the trips code

Playing with these shows that there are still some issues with handling
multiple files correctly.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2012-08-27 14:34:21 -07:00
parent e315abf645
commit 6500e943c1
3 changed files with 27 additions and 0 deletions

9
dives/test21.xml Normal file
View file

@ -0,0 +1,9 @@
<dives>
<program name='subsurface' version='1'></program>
<trip date='2011-12-02' />
<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>
<notes>We are testing that the location of the dive is picked up in the trip if the trip has no location</notes>
</dive>
</dives>

9
dives/test22.xml Normal file
View file

@ -0,0 +1,9 @@
<dives>
<program name='subsurface' version='1'></program>
<trip date='2011-12-02' location='trip location' />
<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>
<notes>We are testing that the location of the dive is not picked up in the trip if the trip has a location</notes>
</dive>
</dives>

9
dives/test23.xml Normal file
View file

@ -0,0 +1,9 @@
<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'>
<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>
</dive>
</dives>