_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):
%3 aa_log aa_log (public) aa_log_result aa_log_result (public) aa_true aa_true (public) lang::util::get_hash_indices lang::util::get_hash_indices (public) _acs-lang__util__get_hash_indices _acs-lang__util__get_hash_indices _acs-lang__util__get_hash_indices->aa_log _acs-lang__util__get_hash_indices->aa_log_result _acs-lang__util__get_hash_indices->aa_true _acs-lang__util__get_hash_indices->lang::util::get_hash_indices

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
[ hide source ] | [ make this the default ]
Show another procedure: