_acs-lang__util__get_hash_indices (private)
_acs-lang__util__get_hash_indices
Defined in packages/acs-lang/tcl/test/acs-lang-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 {{ set multilingual_string "#package1.key1# abc\# #package2.key2#" set indices_list [lang::util::get_hash_indices $multilingual_string] set expected_indices_list [list [list 0 14] [list 21 35]] aa_true "there should be two hash entries" {[llength $indices_list] == 2} set counter 0 foreach index_item $indices_list { set expected_index_item [lindex $expected_indices_list $counter] aa_true "checking start and end indices of item $counter" { [lindex $index_item 0] eq [lindex $expected_index_item 0] && [lindex $index_item 1] eq [lindex $expected_index_item 1] } incr counter } }} { 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" "util__get_hash_indices (body $body_count): Error during execution: $msg, stack trace: \n$::errorInfo" } incr body_count }XQL Not present: Generic, PostgreSQL, Oracle