diff --git a/codabar/encoder.go b/codabar/encoder.go index 7e14c0e..8e0f3f6 100644 --- a/codabar/encoder.go +++ b/codabar/encoder.go @@ -25,10 +25,10 @@ var encodingTable = map[rune][]bool{ ':': []bool{true, true, false, true, false, true, true, false, true, true}, '/': []bool{true, true, false, true, true, false, true, false, true, true}, '.': []bool{true, true, false, true, true, false, true, true, false, true}, - '+': []bool{true, false, true, true, false, false, true, true, false, false, true, true}, + '+': []bool{true, false, true, true, false, true, true, false, true, true}, 'A': []bool{true, false, true, true, false, false, true, false, false, true}, - 'B': []bool{true, false, true, false, false, true, false, false, true, true}, - 'C': []bool{true, false, false, true, false, false, true, false, true, true}, + 'B': []bool{true, false, false, true, false, false, true, false, true, true}, + 'C': []bool{true, false, true, false, false, true, false, false, true, true}, 'D': []bool{true, false, true, false, false, true, true, false, false, true}, } diff --git a/codabar/encoder_test.go b/codabar/encoder_test.go index 5f13009..24a1985 100644 --- a/codabar/encoder_test.go +++ b/codabar/encoder_test.go @@ -28,5 +28,5 @@ func Test_Encode(t *testing.T) { } } - testEncode("A40156B", "10110010010101101001010101001101010110010110101001010010101101010010011") + testEncode("A40156B", "10110010010101101001010101001101010110010110101001010010101101001001011") }