Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: ef24cdf4dcf946a3fe3ccf3d5fb3b35a627820cb
Ticket: 218938ffffffffffffffffffffffffffffffffff
Tcltest package, string compare => string equal
User & Date: nobody on 2000-10-26 01:08:13
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    OriginalBugID: 2840 Bug
    Version: 8.2
    SubmitDate: '1999-09-20'
    LastModified: '1999-09-21'
    Severity: LOW
    Status: Released
    Submitter: techsupp
    ChangedBy: jenn
    OS: Other
    Machine: NA
    FixedDate: '1999-09-21'
    ClosedDate: '2000-10-25'
    
    
    Name:
    
    Andreas Kupries
    
    
    ReproducibleScript:
    
    Just a slight internal revision of the code, substituting string
    
        compare's with the appropriate string equal's.
    
    
    Patch:
    
    *** tcltest.tcl.orig5Thu Sep 16 16:11:22 1999
    
    --- tcltest.tclFri Sep 17 19:27:17 1999
    
    ***************
    
    *** 510,516 ****
    
          # to the "e" format of floating-point numbers.
    
    
          set ::tcltest::testConstraints(eformat) 1
    
    !     if {[string compare "[format %g 5e-5]" "5e-05"] != 0} {
    
      set ::tcltest::testConstraints(eformat) 0
    
          }
    
    
    --- 510,516 ----
    
          # to the "e" format of floating-point numbers.
    
    
          set ::tcltest::testConstraints(eformat) 1
    
    !     if {![string equal "[format %g 5e-5]" "5e-05"]} {
    
      set ::tcltest::testConstraints(eformat) 0
    
          }
    
    
    ***************
    
    *** 830,838 ****
    
          if {[info exists flag(-tmpdir)]} {
    
      set ::tcltest::temporaryDirectory $flag(-tmpdir)
    
    
    ! if {[string compare \
    
      [file pathtype $::tcltest::temporaryDirectory] \
    
    ! "absolute"] != 0} { 
    
          set ::tcltest::temporaryDirectory [file join [pwd] \
    
          $::tcltest::temporaryDirectory] 
    
      }
    
    --- 830,838 ----
    
          if {[info exists flag(-tmpdir)]} {
    
      set ::tcltest::temporaryDirectory $flag(-tmpdir)
    
    
    ! if {![string equal \
    
      [file pathtype $::tcltest::temporaryDirectory] \
    
    ! "absolute"]} { 
    
          set ::tcltest::temporaryDirectory [file join [pwd] \
    
          $::tcltest::temporaryDirectory] 
    
      }
    
    ***************
    
    *** 872,878 ****
    
    
          if {[info exists flag(-outfile)]} {
    
      set tmp $flag(-outfile)
    
    ! if {[string compare [file pathtype $tmp] "absolute"] != 0} {
    
          set tmp [file join $::tcltest::temporaryDirectory $tmp]
    
      }
    
      set ::tcltest::outputChannel [open $tmp w]
    
    --- 872,878 ----
    
    
          if {[info exists flag(-outfile)]} {
    
      set tmp $flag(-outfile)
    
    ! if {![string equal [file pathtype $tmp] "absolute"]} {
    
          set tmp [file join $::tcltest::temporaryDirectory $tmp]
    
      }
    
      set ::tcltest::outputChannel [open $tmp w]
    
    ***************
    
    *** 880,886 ****
    
    
          if {[info exists flag(-errfile)]} {
    
      set tmp $flag(-errfile)
    
    ! if {[string compare [file pathtype $tmp] "absolute"] != 0} {
    
          set tmp [file join $::tcltest::temporaryDirectory $tmp]
    
      }
    
      set ::tcltest::errorChannel [open $tmp w]
    
    --- 880,886 ----
    
    
          if {[info exists flag(-errfile)]} {
    
      set tmp $flag(-errfile)
    
    ! if {![string equal [file pathtype $tmp] "absolute"]} {
    
          set tmp [file join $::tcltest::temporaryDirectory $tmp]
    
      }
    
      set ::tcltest::errorChannel [open $tmp w]
    
    ***************
    
    *** 1266,1272 ****
    
          }
    
    
          set code [catch {uplevel $script} actualAnswer]
    
    !     if {([string compare $actualAnswer $expectedAnswer] == 0) && ($code == 0)} {
    
      incr ::tcltest::numTests(Passed)
    
      if {[string first p $::tcltest::verbose] != -1} {
    
          puts $::tcltest::outputChannel "++++ $name PASSED"
    
    --- 1266,1272 ----
    
          }
    
    
          set code [catch {uplevel $script} actualAnswer]
    
    !     if {([string equal $actualAnswer $expectedAnswer]) && ($code == 0)} {
    
      incr ::tcltest::numTests(Passed)
    
      if {[string first p $::tcltest::verbose] != -1} {
    
          puts $::tcltest::outputChannel "++++ $name PASSED"
    
    
    PatchFiles:
    
    tcltest.tcl
    
    
    
    
    
    
  4. foundin changed to: "obsolete: 8.2"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "nobody"
  9. subsystem changed to: "34. tcltest Package"
  10. title changed to: "Tcltest package, string compare => string equal"
  11. type changed to: "Bug"