Merge branch '814-normalize-database' of https://github.com/stefan-niedermann/nextcloud-notes into 603-sorting-method

This commit is contained in:
Hui-Ouyang16 2020-05-23 03:24:01 +08:00
commit 17687b2511

View file

@ -30,18 +30,14 @@ public class SearchableBaseNoteFragmentTest {
System.out.println("Fixed Version");
System.out.println("Total Time: " + (endTime - startTime) + " ms");
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);
System.out.println();
if (endTime - startTime > 10) {
fail("The algorithm spends too much time.");
}
}
} catch (Exception e) {
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) {
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()));
}
}
}