Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
cfb67a76cThis file is pinned to the selected release. Download the original to open it in your design tool.
package com.marginallyclever.convenience;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.assertEquals;
public class TestStringHelper {
@Test
public void testPaddedHex() {
assertEquals("000001",StringHelper.paddedHex(0x1));
assertEquals("0007ff",StringHelper.paddedHex(0x7ff));
assertEquals("100001",StringHelper.paddedHex(0x100001));
assertEquals("1000001",StringHelper.paddedHex(0x1000001));
assertEquals("100000",StringHelper.paddedHex(0x100000));
}
}