mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-02 17:46:22 +03:00
- The maximum value of cpulimit in test cases was limited to 1000 seconds (~ 17 minutes) - cpulimit 1000 has been added to hlr/begin
27 lines
730 B
Plaintext
Executable File
27 lines
730 B
Plaintext
Executable File
puts "============"
|
|
puts "OCC23706"
|
|
puts "============"
|
|
puts ""
|
|
#########################################################################
|
|
# Cannot project point on curve
|
|
#########################################################################
|
|
|
|
cpulimit 1000
|
|
|
|
2dbsplinecurve b3 2 6 1 3 2 1 3 1 4 1 5 1 6 3 2 5 1 3 7 1 4 8 1 4 8 1 4 8 1 5 9 1 9 7 1
|
|
2dbsplinecurve b4 2 6 2 3 2.5 1 3 1 3.5 1 4 1 4.5 3 -1 2 1 1 11 1 3 9 1 3 9 1 3 9 1 5 7 1 7 4 1
|
|
|
|
set info [2dextrema b3 b4]
|
|
set status 0
|
|
regexp "dist 1: +(\[-0-9.+eE\]+)" $info full pp
|
|
if { $pp > 1.0e-7 } {
|
|
puts "Error : Extrema is wrong"
|
|
set status 1
|
|
}
|
|
|
|
if { $status != 0 } {
|
|
puts "Error : Extrema is wrong"
|
|
} else {
|
|
puts "OK: Extrema is valid"
|
|
}
|