aboutsummaryrefslogtreecommitdiffstats
path: root/dives
AgeCommit message (Collapse)Author
2012-12-06Add two test dives that triggered the bug fixed in the previous commitGravatar Dirk Hohndel
Loading these two XML files created a divelist with two trips that each started at the same time but that were NOT linked together (because the code in insert_trip detected that they started at the same time). Since the trips were not linked together, trying to then merge those two trips from the UI got us into an infinite loop, trying to move a dive from one trip into the same trip (as the code couldn't find the trip that wasn't linked into the dive_trip_list). Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2012-09-17Correctly deal with empty XML filesGravatar Dirk Hohndel
Previously we could end up with a bogus dive with all zero data in it. Adding dives/test24.xml to be able to test that we handle this case correctly. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2012-09-03Correct the trip related test divesGravatar Dirk Hohndel
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>
2012-08-27Some simple test dives for the trips codeGravatar Dirk Hohndel
Playing with these shows that there are still some issues with handling multiple files correctly. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2011-12-12Add three more trimix test divesGravatar Dirk Hohndel
This allows us to check what we display in the dive list and how we sort it. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2011-12-12Make test dive 15 a bit more usefulGravatar Dirk Hohndel
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2011-12-12Two test dives I added a couple of months agoGravatar Dirk Hohndel
...and never commited Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2011-12-11Add trimix test diveGravatar Dirk Hohndel
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2011-11-09Correctly plot dives ending below the surfaceGravatar Dirk Hohndel
I thought we had fixed this before - but I guess it got broken again somewhere. We now make sure that the plot_info ends on an entry with depth 0. Added test14 to verify the fix. Also fixed cut'n'paste errors in a few test dive files. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2011-11-04Fix missing pressure plot at start of the dive in some situationsGravatar Dirk Hohndel
In some situations we could end up with no sample pressure and no interpolated pressure at time = 0. This is now fixed. Fix notes in test dive the exposed the issue. Also change the code in create_plot_info to keep the number of samples and the number of corresponding pi entries in separate variables. This avoids future changes from breaking if they assume they can access dive->sample[nr_samples - 1] (which is a reasonable assumption to make). Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2011-11-04Update test divesGravatar Dirk Hohndel
The notes now reflect things that were fixed in the last commits. Also added more test dives to test other boundary cases. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2011-11-04Replace Linus' dives with useful test dives that help test the appGravatar Dirk Hohndel
As much as Linus' dives may be fun to look at, they don't help us test the app. Writing these test dives I already found a couple of bugs - and I'm just getting started. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2011-08-28Make the multi-dive files valid XMLGravatar Linus Torvalds
They had multiple "root" entries (all called 'dive'), which makes baby Jesus cry. So just enclose them all in one root entry (called 'dives') that magically turns it all into parseable xml. Yeah, that really helps make the world a better place. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2011-08-28Start archiving the stupid XML filesstartGravatar Linus Torvalds
(and add a reminder of how they came to be) Gaah. XML is *stupid*. It's not easy to parse for humans or for computers, and some of these XML files are just disgusting. But maybe they can be turned into something usable with libxml. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>