Restoring test cases removed by last commit.
[occt.git] / tests / bugs / moddata / bug23464_6
... / ...
CommitLineData
1puts "============"
2puts "CR23464"
3puts "============"
4puts ""
5##########################################################################################################
6# Projection algorithm produces wrong results
7##########################################################################################################
8
9set int_check 3
10set fract_check 1415927
11
12restore [locate_data_file bug23464_c58.draw] c58
13restore [locate_data_file bug23464_s46.draw] s46
14
15project result c58 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