Rev 20 | Rev 4849 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
20 | reyssat | 1 | |
2 | good=!singlespace $(replygood$i) |
||
3 | good=!trim $good |
||
4 | good=!rows2lines $good |
||
5 | good=!line 1 of $good |
||
6 | good=!translate | to $\ |
||
7 | $ in $good |
||
8 | good=!nonempty lines $good |
||
9 | replyGood$i=!line 1 of $good |
||
10 | replyGood$i=!items2words $(replyGood$i) |
||
11 | dd=$(reply$i) |
||
12 | |||
13 | !if r$i notitemof $thisstep |
||
14 | !goto nocheck |
||
15 | !endif |
||
16 | |||
17 | !if $i notitemof $fill_checked |
||
18 | fill_checked=!append item $i to $fill_checked |
||
19 | dd2= |
||
20 | !for d_ in $dd |
||
21 | !if $d_ isitemof $fill_check |
||
22 | dd2=!append item $d_ to $dd2 |
||
23 | !if $(replytype$i)=dragfill |
||
24 | pos=!positionof item $d_ in $fill_check |
||
25 | pos=!item 1 of $pos |
||
26 | !if $pos!=$empty |
||
27 | fill_check=!replace item number $pos by $ in $fill_check |
||
28 | !endif |
||
29 | !endif |
||
30 | !else |
||
31 | dd2=!append item ?????? to $dd2 |
||
32 | !endif |
||
33 | !next d_ |
||
34 | dd=$dd2 |
||
35 | !if $(replytype$i)=dragfill |
||
36 | fill_check=!nonempty items $fill_check |
||
37 | !endif |
||
38 | !endif |
||
39 | |||
40 | :nocheck |
||
41 | reply$i=$dd |
||
42 | m_reply$i=$dd |
||
43 | reply_$i=!items2words $dd |
||
44 | |||
45 | !if $wims_read_parm=nocompare |
||
46 | !exit |
||
47 | !endif |
||
48 | |||
49 | !if $good=$empty |
||
50 | Test=bad $i |
||
51 | !exit |
||
52 | !endif |
||
53 | |||
54 | diag= |
||
55 | t_=!linecnt $good |
||
56 | good=!replace internal , $ by , in $good |
||
57 | dd=!replace internal , $ by , in $dd |
||
1802 | bpr | 58 | ddo=!sort items $dd |
20 | reyssat | 59 | !for n=1 to $t_ |
60 | g=!line $n of $good |
||
61 | g=!trim $g |
||
62 | !if $dd issametext $g |
||
63 | diag=yes |
||
64 | !endif |
||
1802 | bpr | 65 | !if noorder iswordof $(replyoption$i) |
66 | go=!sort items $g |
||
67 | !if $ddo issametext $go |
||
68 | diag=yes |
||
69 | !endif |
||
70 | !endif |
||
20 | reyssat | 71 | !next n |
72 | |||
73 | !if $diag=yes |
||
74 | diareply$i=good |
||
75 | !advance freegot |
||
76 | !else |
||
77 | diareply$i=bad |
||
78 | !endif |
||
79 |