_acs-tcl__min_max (private)
_acs-tcl__min_max
Defined in packages/acs-tcl/tcl/test/acs-tcl-test-procs.tcl
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
Source code: set _aa_export {} set body_count 1 foreach testcase_body {{ aa_equals "Empty value" [util::min {}] {} aa_equals "Empty value" [util::max {}] {} aa_equals "1" [util::min 1] {1} aa_equals "1" [util::max 1] {1} aa_equals "1 0 -1" [util::min 1 0 -2] {-2} aa_equals "1 0 -1" [util::max 1 0 -2] {1} aa_equals "0 0.89 -0.89 -1" [util::min 0 0.89 -0.89 -1] {-1} aa_equals "0 0.89 -0.89 -1" [util::max 0 0.89 -0.89 -1] {0.89} aa_equals "3 1000 0 -3 -2000" [util::min 3 1000 0 -3 -2000] {-2000} aa_equals "3 1000 0 -3 -2000" [util::max 3 1000 0 -3 -2000] {1000} aa_log "List with numeric and non-numeric entries" aa_equals "1 2 z a boy 6" [util::max 1 2 z a boy 6] z aa_equals "1 2 z a boy 6" [util::min 1 2 z a boy 6] 1 aa_log "List with some weird entries" aa_equals "1 -0.4 -0,4 -1000 2 @ z a b 6" [util::max 1 -0.4 -0,4 -1000 2 @ z a b 6] z aa_equals "1 -0.4 -0,4 -1000 2 @ z a b 6" [util::min 1 -0.4 -0,4 -1000 2 @ z a b 6] -0,4 }} { aa_log "Running testcase body $body_count" set ::__aa_test_indent [info level] set catch_val [catch $testcase_body msg] if {$catch_val != 0 && $catch_val != 2} { aa_log_result "fail" "min_max (body $body_count): Error during execution: $msg, stack trace: \n$::errorInfo" } incr body_count }XQL Not present: Generic, PostgreSQL, Oracle