Subversion Repositories wimsdev

Rev

Rev 1802 | Go to most recent revision | Details | 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
58
!for n=1 to $t_
59
 g=!line $n of $good
60
 g=!trim $g
61
 !if $dd issametext $g
62
  diag=yes
63
 !endif
64
!next n
65
 
66
!if $diag=yes
67
 diareply$i=good
68
 !advance freegot
69
!else
70
 diareply$i=bad
71
!endif
72