File tree Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ struct AiInfo
32
32
}
33
33
};
34
34
35
- // https://github.com/gs1/gs1-syntax-dictionary 2023-09-22
35
+ // https://github.com/gs1/gs1-syntax-dictionary 2024-06-10
36
36
static const AiInfo aiInfos[] = {
37
37
// TWO_DIGIT_DATA_LENGTH
38
38
{ " 00" , 18 },
@@ -220,6 +220,16 @@ static const AiInfo aiInfos[] = {
220
220
{ " 7240" , -20 },
221
221
{ " 7241" , 2 },
222
222
{ " 7242" , -25 },
223
+ { " 7250" , 8 },
224
+ { " 7251" , 12 },
225
+ { " 7252" , 1 },
226
+ { " 7253" , -40 },
227
+ { " 7254" , -40 },
228
+ { " 7255" , -10 },
229
+ { " 7256" , -90 },
230
+ { " 7257" , -70 },
231
+ { " 7258" , 3 },
232
+ { " 7259" , -40 },
223
233
224
234
{ " 8001" , 14 },
225
235
{ " 8002" , -20 },
Original file line number Diff line number Diff line change @@ -259,6 +259,12 @@ TEST(HRIFromGS1, Single)
259
259
// Too long
260
260
EXPECT_EQ (HRIFromGS1 (" 7240123456789012345678901" ), " " );
261
261
262
+ // Fixed length
263
+ EXPECT_EQ (HRIFromGS1 (" 72581/2" ), " (7258)1/2" );
264
+ // Incorrect lengths
265
+ EXPECT_EQ (HRIFromGS1 (" 72581/10" ), " " );
266
+ EXPECT_EQ (HRIFromGS1 (" 725812" ), " " );
267
+
262
268
// Max length
263
269
EXPECT_EQ (HRIFromGS1 (" 80071234567890123456789012345678901234" ), " (8007)1234567890123456789012345678901234" );
264
270
EXPECT_EQ (HRIFromGS1 (" 8007123456789012345678901234567890123" ), " (8007)123456789012345678901234567890123" );
You can’t perform that action at this time.
0 commit comments