Fix tests and linter

This commit is contained in:
José Rebelo
2025-06-14 18:26:43 +01:00
parent 6d82e34d80
commit 3bebabb19f
2 changed files with 4 additions and 4 deletions
@@ -7,8 +7,6 @@ import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.icu.util.Calendar;
import android.icu.util.TimeZone;
import android.os.Handler;
import android.os.Looper;
import android.widget.Toast;
@@ -20,6 +18,8 @@ import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.TimeZone;
import java.util.concurrent.Callable;
import java.util.function.Function;
@@ -74,9 +74,9 @@ public class LoggingTest extends TestBase {
@Test
public void testLogFormat() {
String tempOut = Logging.formatBytes(new byte[] {0xa});
assertEquals("0x0a", tempOut);
assertEquals("0a", tempOut);
tempOut = Logging.formatBytes(new byte[] {0xa, 1, (byte) 255});
assertEquals("0x0a 0x01 0xff", tempOut);
assertEquals("0a 01 ff", tempOut);
}
}