File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ func DetectCardDocumentByAtr(atr Atr) []CardDocumentType {
2121 } else if atr .Is (GEMALTO_ATR_2 ) || atr .Is (GEMALTO_ATR_3 ) {
2222 return []CardDocumentType {GemaltoIdDocumentCardType , MedicalDocumentCardType , VehicleDocumentCardType }
2323 } else if atr .Is (GEMALTO_ATR_4 ) {
24- return []CardDocumentType {GemaltoIdDocumentCardType }
24+ return []CardDocumentType {GemaltoIdDocumentCardType , VehicleDocumentCardType }
2525 } else if atr .Is (MEDICAL_ATR_1 ) || atr .Is (MEDICAL_ATR_2 ) {
2626 return []CardDocumentType {MedicalDocumentCardType }
2727 } else if atr .Is (VEHICLE_ATR_0 ) || atr .Is (VEHICLE_ATR_2 ) || atr .Is (VEHICLE_ATR_3 ) || atr .Is (VEHICLE_ATR_4 ) {
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ func Test_DetectCardDocumentByAtr(t *testing.T) {
3535 },
3636 {
3737 atr : card .GEMALTO_ATR_4 ,
38- expectedResult : []card.CardDocumentType {card .GemaltoIdDocumentCardType },
38+ expectedResult : []card.CardDocumentType {card .GemaltoIdDocumentCardType , card . VehicleDocumentCardType },
3939 },
4040 {
4141 atr : card .MEDICAL_ATR_1 ,
You can’t perform that action at this time.
0 commit comments