Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | First testsuite. |
---|---|
Downloads: | Tarball | ZIP archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
89eb5ba442ec313c12c66673f2e97d02 |
User & Date: | peter 2004-02-23 21:10:31.000 |
Context
2004-02-23
| ||
21:11 | *** empty log message *** check-in: f705f9fd7c user: peter tags: trunk | |
21:10 | First testsuite. check-in: 89eb5ba442 user: peter tags: trunk | |
21:09 | Added "mark file" in dirdiff popup menu. Added support for testsuite. check-in: 17c7df7823 user: peter tags: trunk | |
Changes
Added testsuite.tcl.
> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 | #!/bin/sh #---------------------------------------------------------------------- # $Revision$ #---------------------------------------------------------------------- # the next line restarts using tclsh \ exec tclsh "$0" "$@" lappend auto_path eskil.vfs/lib package require tcltest 2.2 namespace import tcltest::* tcltest::configure -verbose "body error" #testConstraint knownbug 1 #tcltest::configure -match eskil-1.* package require Tk wm withdraw . set ::eskil_testsuite 1 set instrument 0 if {$instrument} { exec ./instrument.tcl compareBlocks source eskili.tcl } else { source eskil.tcl } test eskil-2.1 { Change-block parsing } -body { set b1 [list "Apa 1" "Bepa 1" "Cepa 1"] set b2 [list "Apa 2" "Bepa 2" "Cepa 2"] compareBlocks $b1 $b2 } -result {c c c} test eskil-2.2 { Change-block parsing } -body { set b1 [list "Apa 1" "Bepa 1" "Cepa 1"] set b2 [list "Bepa 2" "Gurka" "Cepa 2"] compareBlocks $b1 $b2 } -result {d c a c} test eskil-2.3 { Change-block parsing } -body { set b1 [list "Apa 1" "Bepa 1" "Cepa 1"] set b2 [list "Cepa 2" "Gurka"] compareBlocks $b1 $b2 } -result {d d c a} test eskil-2.4 { Change-block parsing } -body { set b1 [list "Apa 1" "Bepa 1" "Cepa 1"] set b2 [list "Bepa 2" "Gurka"] compareBlocks $b1 $b2 } -result {d c C} test eskil-2.5 { Change-block parsing } -body { set b1 [list "Apa 1" "Bepa 1" "Cepa 1" "Depa 1"] set b2 [list "Bepa 2" "Gurka"] compareBlocks $b1 $b2 } -result {d c C d} test eskil-2.6 { Change-block parsing } -body { set b1 [list "Apa 1" "Bepa 1" "Cepa 1" "Depa 1"] set b2 [list "Bepa 2" "Apa 2" "Cepa 2"] compareBlocks $b1 $b2 } -result {d c a c d} if {$instrument} { set ch [open _instrument_result w] puts $ch [join [lsort -integer [array names ::_instrument]] \n] close $ch set ch [open {|diff _instrument_lines _instrument_result}] while {[gets $ch line] >= 0} { if {[regexp {<|>} $line]} { puts $line } } catch {close $ch} #file delete _instrument_lines _instrument_result #file delete eskili.tcl } exit |