2 if { [isdraw result] } {
3 #check if result is valid
5 puts [checkshape result]
8 regexp {Mass +: +([-0-9.+eE]+)} [sprops result] full m
10 if { [string compare "$mass" "empty"] != 0 } {
12 puts "Error : The $command is not valid. The $prop is 0."
15 puts "The expected $prop is $mass"
17 #check of change of square is < 1%
18 if { ($mass != 0 && [expr 1.*abs($mass - $m)/$mass] > 0.01) || ($mass == 0 && $m != 0) } {
19 puts "Error : The $prop of result shape is $m"
23 puts "Error : The $command is not valid. The $prop is $m"
32 xwd $imagedir/${test_image}.gif
37 xwd $imagedir/${test_image}.gif
40 puts "Error : The $command can not be build."
43 # to end a test script