Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/add support for c128 gs1 initial fnc1 char in dynamic #213

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion BarcodeStandard/Symbologies/Code128.cs
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ void entry(string a, string b, string c, string encoding)
entry("CODE_C", "CODE_C", "99", "10111011110");
entry("CODE_B", "FNC4", "CODE_B", "10111101110");
entry("FNC4", "CODE_A", "CODE_A", "11101011110");
entry("FNC1", "FNC1", "FNC1", "11110101110");
entry($"{FNC1}", $"{FNC1}", $"{FNC1}", "11110101110");
entry("START_A", "START_A", "START_A", "11010000100");
entry("START_B", "START_B", "START_B", "11010010000");
entry("START_C", "START_C", "START_C", "11010011100");
Expand Down
4 changes: 4 additions & 0 deletions BarcodeStandardTests/Symbologies/Code128Tests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ public class Code128Tests
[DataRow("\u0012", "1101000010010010011110100100111101100011101011", "1101000010010010011110100100111101100011101011", null, null)]
[DataRow("\u0014", "1101000010010011110100100111101001100011101011", "1101000010010011110100100111101001100011101011", null, null)]
[DataRow("this\u0012is\u0014weird", "110100100001001111010010011000010100001101001011110010011101011110100100111101011110111010000110100101111001001110101111010011110100101111011101111001010010110010000100001101001001001111010000100110101100010001100011101011", null, null, null)]
[DataRow($"È401955144b227A733000", "1101000010011110101110101110111101100010100011001011100111010001101001100111011101011110110010011101011110111010010000110101110111101100111010011101011110111011011101010001100010111011110100001101001101101100011011001100101100010001100011101011", null, "11010010000111101011101100100111010011101100100111001101110010110011011100100110111001001001110011011001001110110010011101001000011011001110010110011100101110110111010100011000111011011101100101110011001011100100111011001001110110010011101100110010010001100011101011", null)]
[DataRow($"È0055512322", "1101000010011110101110101110111101101100110011101000110110111010001110110111011001110100100011010001100011101011", "110100001001111010111010011101100100111011001101110010011011100100110111001001001110011011001110010110010111001100111001011001110010100001101001100011101011", "110100100001111010111010011101100100111011001101110010011011100100110111001001001110011011001110010110010111001100111001011001110010100001100101100011101011", "11010011100111101011101101100110011101000110110111010001110110111011001110100111101011101100011101011")]
public void EncodeBarcode(
string data,
string expectedAuto,
Expand Down Expand Up @@ -73,6 +75,8 @@ public void EncodeBarcode_GenerateDataRow()
"\u0012",
"\u0014",
"this\u0012is\u0014weird",
"È0026E",
"È401555111",
})
{
string Represent(
Expand Down