@@ -4,6 +4,7 @@ const { DisplayFile } = require("../src/dspf");
4
4
const depts = require ( "./file/depts" ) ;
5
5
const replloadfm = require ( "./file/replloadfm" ) ;
6
6
const issue1149 = require ( `./file/issue1149` ) ;
7
+ const issue1382 = require ( `./file/issue1382` ) ;
7
8
8
9
exports . simple = ( ) => {
9
10
const file = new DisplayFile ( ) ;
@@ -151,4 +152,25 @@ exports.issue1149 = () => {
151
152
152
153
const windowTitle = windowFormat . keywords . find ( keyword => keyword . name === `WDWTITLE` ) ;
153
154
assert . strictEqual ( windowTitle . value , `*TEXT 'Print accounts by store number for status type - Help' *COLOR WHT` ) ;
155
+
156
+ const text4 = windowFormat . fields . find ( field => field . name === `TEXT4` ) ;
157
+ assert . ok ( text4 ) ;
158
+ assert . strictEqual ( text4 . value , `taken a check from that account. You can only select one status type` ) ;
159
+ assert . deepStrictEqual ( text4 . position , { x : 2 , y : 5 } ) ;
160
+ }
161
+
162
+ exports . issue1382 = ( ) => {
163
+ const file = new DisplayFile ( ) ;
164
+ file . parse ( issue1382 . lines ) ;
165
+
166
+ const screenFormat = file . formats [ 1 ] ;
167
+ assert . strictEqual ( screenFormat . name , `SCRN2` ) ;
168
+
169
+ const textField1 = screenFormat . fields [ 0 ] ;
170
+ assert . strictEqual ( textField1 . name , `TEXT1` ) ;
171
+ assert . strictEqual ( textField1 . value , `This text containt parentheses (Y/N)` ) ;
172
+
173
+ const textField2 = screenFormat . fields [ 1 ] ;
174
+ assert . strictEqual ( textField2 . name , `TEXT2` ) ;
175
+ assert . strictEqual ( textField2 . value , `This text containt dashes -Y/N-` ) ;
154
176
}
0 commit comments