Integration part of tests of grid chl
[occt.git] / tests / bugs / moddata / bug23464_5
CommitLineData
bd82d4b2 1puts "============"
2puts "CR23464"
3puts "============"
4puts ""
5##########################################################################################################
6# Projection algorithm produces wrong results
7##########################################################################################################
8
9set int_check 3
10set fract_check 1415927
11
351bbcba 12restore [locate_data_file bug23464_c57.draw] c57
13restore [locate_data_file bug23464_s46.draw] s46
bd82d4b2 14
15project result c57 s46
16set info [length result]
17regexp {is +([-0-9.+eE]+)} $info full num
18
19set int_part [expr round($num)]
20set y [expr $num - round($num)]
21set z [expr $y*10000000]
22set fract_part [expr round($z)]
23
24if { ${int_check} != ${int_part} } {
25 puts "Error : Integer part of result is incorrect"
26}
27
28if { ${fract_check} != ${fract_part} } {
29 puts "Error : Fractional part of result is incorrect"
30}
31
32
33
34
35