Skip to content

Commit

Permalink
Change InterpreterTest::testDESADV test (trailing question mark)
Browse files Browse the repository at this point in the history
When I got a trailing question mark for example on a segment IMD of
message D96ADESADV, Interpreter crashes.

```edi
IMD+F+81+:::ROADS TO SATA A ??'
```

If I put a space before quote, test passes.

```edi
IMD+F+81+:::ROADS TO SATA A ?? '
```
  • Loading branch information
tophsic committed Jun 7, 2017
1 parent 07866ad commit 2f8813b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/files/D96ADESADV.edi
Expand Up @@ -15,7 +15,7 @@ RFF+LI:6877871'
RFF+ON:6877871'
LIN+002'
PIA+5+9781568361871'
IMD+F+81+:::ROADS TO SATA A 2'
IMD+F+81+:::ROADS TO SATA A ??'
QTY+12:1'
RFF+LI:6905456'
RFF+ON:6905456'
Expand Down
2 changes: 1 addition & 1 deletion tests/files/D96ADESADV.json
Expand Up @@ -167,7 +167,7 @@
"itemDescriptionIdentification":"",
"codeListQualifier":"",
"codeListResponsibleAgencyCoded":"",
"itemDescription":"ROADS TO SATA A 2"
"itemDescription":"ROADS TO SATA A ?"
}
},
"quantity":{
Expand Down

0 comments on commit 2f8813b

Please sign in to comment.