package net.openhft.chronicle.wire;

import org.junit.Test;

import static org.junit.Assert.assertEquals;

public class Base40LongConverterTest extends WireTestCommon {
    @Test
    public void parse() {
        Base40LongConverter bic = Base40LongConverter.UPPER;
        for (String s : ",A,0,ZZ,99,ABCDEF,012345,ZZZZZZZZZZZZ,999999999999".split(",")) {
            assertEquals(s, bic.asString(bic.parse(s)));
        }
    }

    @Test
    public void parseLower() {
        Base40LongConverter bic = Base40LongConverter.LOWER;
        for (String s : ",a,0,zz,99,abcdef,012345,zzzzzzzzzzzz,999999999999".split(",")) {
            assertEquals(s, bic.asString(bic.parse(s)));
        }

    }
}
@@ -30,16 +30,41 @@
 .wire;%0A%0A
+import org.junit.Ignore;%0A
 import o
@@ -705,20 +705,457 @@
 ;%0A        %7D%0A
+    %7D%0A%0A    @Ignore(%22https://github.com/OpenHFT/Chronicle-Wire/issues/370%22)%0A    @Test%0A    public void longConversion() %7B%0A        Sample sample = new Sample();%0A        sample.strategyId = Base40LongConverter.INSTANCE.parse(%22TEST%22);%0A        assertEquals(%22TODO%22, sample.toString());%0A    %7D%0A%0A    private static class Sample extends SelfDescribingMarshallable %7B%0A        @LongConversion(Base40LongConverter.class)%0A        public long strategyId;
 %0A    %7D%0A%7D

test for #370