forked from upstream-mirrors/OpenTracks
Bugfix: prevent crash when creating a marker (no camera or gallery application present).
Fixes #1561.
This commit is contained in:
@@ -12,6 +12,8 @@ public class UintUtilsTest {
|
||||
assertEquals(1, UintUtils.diff(2, 1, UintUtils.UINT16_MAX));
|
||||
assertEquals(3, UintUtils.diff(5, 2, UintUtils.UINT16_MAX));
|
||||
assertEquals(65534, UintUtils.diff(1, 2, UintUtils.UINT16_MAX));
|
||||
// assertEquals(65535, UintUtils.diff(0, 1, UintUtils.UINT16_MAX));
|
||||
assertEquals(65535, UintUtils.UINT16_MAX);
|
||||
|
||||
assertEquals(65530, UintUtils.diff(UintUtils.UINT16_MAX, 5, UintUtils.UINT16_MAX));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user