mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-12-28 11:35:48 +01:00
Add a small testcase for logging
This commit is contained in:
parent
3fac021ff2
commit
22e7569587
@ -72,4 +72,13 @@ public class LoggingTest extends TestBase {
|
||||
throw ex;
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testLogFormat() {
|
||||
String tempOut = Logging.formatBytes(new byte[] {0xa});
|
||||
assertEquals("0x0a", tempOut);
|
||||
|
||||
tempOut = Logging.formatBytes(new byte[] {0xa, 1, (byte) 255});
|
||||
assertEquals("0x0a 0x01 0xff", tempOut);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user