mirror of
https://github.com/nextcloud/notes-android.git
synced 2024-11-27 09:46:50 +03:00
fixed a bug in junit test
This commit is contained in:
parent
81389d847a
commit
0dc19d0134
1 changed files with 3 additions and 7 deletions
|
@ -30,18 +30,14 @@ public class SearchableBaseNoteFragmentTest {
|
||||||
System.out.println("Fixed Version");
|
System.out.println("Fixed Version");
|
||||||
System.out.println("Total Time: " + (endTime - startTime) + " ms");
|
System.out.println("Total Time: " + (endTime - startTime) + " ms");
|
||||||
System.out.println("Total Times: " + num);
|
System.out.println("Total Times: " + num);
|
||||||
System.out.println("String Size: " + (sb.length() / 1024) + " K");
|
System.out.println("String Size: " + (sb.length() / 1024.0) + " K");
|
||||||
assertEquals((int) Math.pow(2, count), num);
|
assertEquals((int) Math.pow(2, count), num);
|
||||||
System.out.println();
|
System.out.println();
|
||||||
|
|
||||||
if (endTime - startTime > 10) {
|
|
||||||
fail("The algorithm spends too much time.");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
fail(Arrays.toString(e.getStackTrace()));
|
fail(Arrays.toString(e.getStackTrace()));
|
||||||
Log.e("Test Count Occurrences Fixed", Arrays.toString(e.getStackTrace()));
|
System.out.println("Test Count Occurrences Fixed" + Arrays.toString(e.getStackTrace()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -63,7 +59,7 @@ public class SearchableBaseNoteFragmentTest {
|
||||||
|
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
fail(Arrays.toString(e.getStackTrace()));
|
fail(Arrays.toString(e.getStackTrace()));
|
||||||
Log.e("Test Null Or Empty Input", Arrays.toString(e.getStackTrace()));
|
System.out.println("Test Null Or Empty Input" + Arrays.toString(e.getStackTrace()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in a new issue