Merge pull request #27 from PMoneda/master

Change twoofive barcode width to 3
This commit is contained in:
Florian 2017-09-08 17:22:17 +02:00 committed by GitHub
commit 45e1f5ec9e
2 changed files with 2 additions and 2 deletions

View File

@ -45,7 +45,7 @@ var (
start: []bool{true, false, true, false}, start: []bool{true, false, true, false},
end: []bool{true, true, false, true}, end: []bool{true, true, false, true},
widths: map[bool]int{ widths: map[bool]int{
true: 2, true: 3,
false: 1, false: 1,
}, },
}, },

View File

@ -41,5 +41,5 @@ func Test_Encode(t *testing.T) {
} }
testEncode(false, "12345670", "1101101011101010101110101110101011101110111010101010101110101110111010111010101011101110101010101011101110101011101110101101011") testEncode(false, "12345670", "1101101011101010101110101110101011101110111010101010101110101110111010111010101011101110101010101011101110101011101110101101011")
testEncode(true, "12345670", "1010110100101011001101101001010011010011001010101010011001101101") testEncode(true, "12345670", "10101110100010101110001110111010001010001110100011100010101010100011100011101101")
} }