rigelhope / omnidroid

Automatically exported from code.google.com/p/omnidroid
Apache License 2.0
0 stars 0 forks source link

OmniAreaTest.testGetOmniArea test fails when run on emulator api 7 #101

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
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 renc...@gmail.com on 28 Jun 2010 at 6:05

GoogleCodeExporter commented 8 years ago
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 case.and...@gmail.com on 1 Jul 2010 at 11:12

GoogleCodeExporter commented 8 years ago

Original comment by case.and...@gmail.com on 6 Jul 2010 at 2:20