Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
230ed377bThis file is pinned to the selected release. Download the original to open it in your design tool.
package com.marginallyclever.convenience;
import com.marginallyclever.convenience.helpers.StringHelper;
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));
}
}