Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
a016080bfThis file is pinned to the selected release. Download the original to open it in your design tool.
puts "============"
puts "OCC9848"
puts "============"
puts ""
#######################################################################
# Specifying invalid name of unit produces exception.(for example tonne instead ton)
#######################################################################
set BugNumber OCC9848
set UnitString "ton/(m*s**2)"
set List ""
set result ""
set GoodResult "Token word : (ton)/((m)*((s)**(2)))"
if [catch { set List [unitparsing ${UnitString}] } result] {
puts "${BugNumber}: Faulty (1)"
} else {
if { ${List} == "${GoodResult}\n"} {
puts "${BugNumber}: OK"
} else {
puts "${BugNumber}: Faulty (2)"
}
}