LibreTasks
LibreTasks copied to clipboard
OmniAreaTest.testGetOmniArea test fails when run on emulator api 7
The test passes, using the same apk, when run on API level 4 emulator. Here is
the log from junit:
edu.nyu.cs.omnidroid.app.controller.datatypes.OmniAreaTest:......
Failure in testGetOmniArea:
junit.framework.AssertionFailedError:
expected:<<omniArea><latitude>40.7279793</latitude><longititude>-73.9957865</lon
gititude><userInput>251 Mercer St, New York,
NY</userInput><proximityDistance>0.3</proximityDistance></omniArea>> but
was:<<omniArea><latitude>40.728771</latitude><longititude>-73.995752</longititud
e><userInput>251 Mercer St, New York,
NY</userInput><proximityDistance>0.3</proximityDistance></omniArea>>
at edu.nyu.cs.omnidroid.app.controller.datatypes.OmniAreaTest.testGetOmniArea(OmniAreaTest.java:165)
at java.lang.reflect.Method.invokeNative(Native Method)
at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:169)
at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:154)
at android.test.InstrumentationTestRunner.onStart(InstrumentationTestRunner.java:430)
at android.app.Instrumentation$InstrumentationThread.run(Instrumentation.java:1447)
.......
Test results for InstrumentationTestRunner=.......F.......
Time: 2.17
FAILURES!!!
Tests run: 14, Failures: 1, Errors: 0
Original issue reported on code.google.com by [email protected]
on 28 Jun 2010 at 6:05
This looks like it just calculates the location slightly differently. We might
want to have it check that the difference is small ~ < 0.05 difference instead
of checking for equal.
Original comment by [email protected]
on 1 Jul 2010 at 11:12
- Added labels: Priority-Low
- Removed labels: Priority-Medium
Original comment by [email protected]
on 6 Jul 2010 at 2:20