Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Fixes to various testsuites and code, in preparation for 1.16 release. Release Candidate Branch opened now. |
---|---|
Downloads: | Tarball | ZIP archive |
Timelines: | family | ancestors | descendants | both | tcllib-1-16-rc |
Files: | files | file ages | folders |
SHA1: |
9fd75df6e5a47e40ef1f6c7d28ac2c49 |
User & Date: | aku 2014-01-21 17:56:15.773 |
Context
2014-01-21
| ||
18:07 | Documentation update. check-in: b17cc24a5b user: aku tags: tcllib-1-16-rc | |
17:56 | Fixes to various testsuites and code, in preparation for 1.16 release. Release Candidate Branch opened now. check-in: 9fd75df6e5 user: aku tags: tcllib-1-16-rc | |
17:39 | Ticket [9318a6687f]: Applied patch by Max Jarek to update the code to the IBAN Registry version 47. Bumped package version to 1.4. check-in: 3c45e337d4 user: andreask tags: trunk | |
Changes
Changes to modules/aes/aes.test.
︙ | ︙ | |||
253 254 255 256 257 258 259 | # ------------------------------------------------------------------------- ## TODO: Go through the various possible options and combinations. test aes-sf-3612645-a0 {aes use of -in option, allura 1366} -setup { set key [binary format a32 0123456789012345678901234567890123456789] set encfile [tcltest::makeFile {} aes.encrypt] set decfile [tcltest::makeFile {} aes.decrypt] | | > | > | > | > | > | > | > | > | 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 | # ------------------------------------------------------------------------- ## TODO: Go through the various possible options and combinations. test aes-sf-3612645-a0 {aes use of -in option, allura 1366} -setup { set key [binary format a32 0123456789012345678901234567890123456789] set encfile [tcltest::makeFile {} aes.encrypt] set decfile [tcltest::makeFile {} aes.decrypt] set outchan [open $encfile w] fconfigure $outchan -translation binary aes::aes -key $key -out $outchan "Hello World Tcl" close $outchan unset outchan } -body { set inchan [open $encfile r] fconfigure $inchan -translation binary set outchan [open $decfile w+] aes::aes -dir decrypt -key $key -in $inchan -out $outchan close $inchan close $outchan viewFile $decfile } -cleanup { file delete $encfile $decfile unset key encfile decfile inchan outchan } -result "Hello World Tcl\000" test aes-sf-3612645-a1 {aes use of -in option, allura 1366} -setup { set key [binary format a32 0123456789012345678901234567890123456789] set encfile [tcltest::makeFile {} aes.encrypt] set outchan [open $encfile w] fconfigure $outchan -translation binary aes::aes -key $key -out $outchan "Hello World Tcl" close $outchan unset outchan } -body { set inchan [open $encfile r] fconfigure $inchan -translation binary set out [aes::aes -dir decrypt -key $key -in $inchan] close $inchan set out } -cleanup { file delete $encfile unset out key encfile inchan } -result "Hello World Tcl\000" test aes-sf-3612645-b0 {aes non-use of -in option, allura 1366} -setup { set key [binary format a32 0123456789012345678901234567890123456789] set encfile [tcltest::makeFile {} aes.encrypt] set decfile [tcltest::makeFile {} aes.decrypt] set outchan [open $encfile w] fconfigure $outchan -translation binary aes::aes -key $key -out $outchan "Hello World Tcl" close $outchan unset outchan } -body { set inchan [open $encfile r] fconfigure $inchan -translation binary set outchan [open $decfile w+] aes::aes -dir decrypt -key $key -out $outchan [read $inchan] close $inchan close $outchan viewFile $decfile } -cleanup { file delete $encfile $decfile unset key encfile decfile inchan outchan } -result "Hello World Tcl\000" test aes-sf-3612645-b1 {aes non-use of -in option, allura 1366} -setup { set key [binary format a32 0123456789012345678901234567890123456789] set encfile [tcltest::makeFile {} aes.encrypt] set outchan [open $encfile w] fconfigure $outchan -translation binary aes::aes -key $key -out $outchan "Hello World Tcl" close $outchan unset outchan } -body { set inchan [open $encfile r] fconfigure $inchan -translation binary set out [aes::aes -dir decrypt -key $key [read $inchan]] close $inchan set out } -cleanup { file delete $encfile unset out key encfile inchan } -result "Hello World Tcl\000" |
︙ | ︙ |
Changes to modules/grammar_fa/fa.tcl.
︙ | ︙ | |||
8 9 10 11 12 13 14 15 | ## A class whose instances hold all the information describing a ## single finite automaton (states, symbols, start state, set of ## accepting states, transition function), and operations to define, ## manipulate, and query this information. # ### ### ### ######### ######### ######### ## Requisites | | > > > > > > > | > > > > > > | 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 | ## A class whose instances hold all the information describing a ## single finite automaton (states, symbols, start state, set of ## accepting states, transition function), and operations to define, ## manipulate, and query this information. # ### ### ### ######### ######### ######### ## Requisites package require Tcl 8.4 if {[package vcompare [package present Tcl] 8.5] >= 0} { # Tcl 8.5+, extended package version numbers. # Require 1.3 and beyond, regardless of major version number. package require snit 1.3- ; # OO system in use (Using hierarchical methods) } else { # Tcl 8.4, emulate, ask for 2.x first, then 1.3+. if {[catch { package require snit 2 ; # OO system in use (Using hierarchical methods) }]} { package require snit 1.3 ; # OO system in use (Using hierarchical methods) } } package require grammar::fa::op ; # Heavy FA operations. package require struct::list ; # Extended list operations. package require struct::set ; # Extended set operations. # ### ### ### ######### ######### ######### ## Implementation snit::type ::grammar::fa { |
︙ | ︙ |
Changes to modules/math/statistics.tcl.
︙ | ︙ | |||
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | # as suggested by Dimitrios Zachariadis # version 0.6: added pdf and cdf procedures for various distributions # (provided by Eric Kemp-Benedict) # version 0.7: added Kruskal-Wallis test (by Torsten Berg) # version 0.8: added Wilcoxon test and Spearman rank correlation # version 0.9: added kernel density estimation package provide math::statistics 0.9 package require math # ::math::statistics -- # Namespace holding the procedures and variables # namespace eval ::math::statistics { # | > > > > > > > > > > > > > > > > | 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 | # as suggested by Dimitrios Zachariadis # version 0.6: added pdf and cdf procedures for various distributions # (provided by Eric Kemp-Benedict) # version 0.7: added Kruskal-Wallis test (by Torsten Berg) # version 0.8: added Wilcoxon test and Spearman rank correlation # version 0.9: added kernel density estimation package require Tcl 8.4 package provide math::statistics 0.9 package require math if {![llength [info commands ::lrepeat]]} { # Forward portability, emulate lrepeat proc ::lrepeat {n args} { if {$n < 1} { return -code error "must have a count of at least 1" } set res {} while {$n} { foreach x $args { lappend res $x } incr n -1 } return $res } } # ::math::statistics -- # Namespace holding the procedures and variables # namespace eval ::math::statistics { # |
︙ | ︙ |
Changes to modules/pop3d/pop3d.test.
1 2 3 4 5 6 7 | # -*- tcl -*- # pop3.test: tests for the simple pop3 server. # # This file contains a collection of tests for one or more of the Tcl # built-in commands. Sourcing this file into Tcl runs the tests and # generates output for errors. No output means no errors were found. # | | | | 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 | # -*- tcl -*- # pop3.test: tests for the simple pop3 server. # # This file contains a collection of tests for one or more of the Tcl # built-in commands. Sourcing this file into Tcl runs the tests and # generates output for errors. No output means no errors were found. # # Copyright (c) 2002-2014 by Andreas Kupries <[email protected]> # All rights reserved. # # RCS: @(#) $Id: pop3d.test,v 1.24 2011/11/14 22:33:48 andreas_kupries Exp $ # ------------------------------------------------------------------------- source [file join \ [file dirname [file dirname [file join [pwd] [info script]]]] \ devtools testutilities.tcl] testsNeedTcl 8.5 ;# Required by mime.tcl testsNeedTcltest 1.0 support { #use comm/comm.tcl comm useTcllibFile devtools/coserv.tcl ; # loads comm too useTcllibFile devtools/dialog.tcl use md5/md5x.tcl md5 |
︙ | ︙ |
Changes to modules/pop3d/pop3d_dbox.test.
1 2 3 4 5 6 7 | # -*- tcl -*- # pop3_dbox.test: tests for the simple pop3 mail database. # # This file contains a collection of tests for one or more of the Tcl # built-in commands. Sourcing this file into Tcl runs the tests and # generates output for errors. No output means no errors were found. # | | | | 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 | # -*- tcl -*- # pop3_dbox.test: tests for the simple pop3 mail database. # # This file contains a collection of tests for one or more of the Tcl # built-in commands. Sourcing this file into Tcl runs the tests and # generates output for errors. No output means no errors were found. # # Copyright (c) 2002-2014 by Andreas Kupries <[email protected]> # All rights reserved. # # RCS: @(#) $Id: pop3d_dbox.test,v 1.11 2006/10/09 21:41:41 andreas_kupries Exp $ # ------------------------------------------------------------------------- source [file join \ [file dirname [file dirname [file join [pwd] [info script]]]] \ devtools testutilities.tcl] testsNeedTcl 8.5 ;# Required by mime.tcl testsNeedTcltest 1.0 support { use md5/md5x.tcl md5 use mime/mime.tcl mime } testing { |
︙ | ︙ |
Changes to modules/pt/tests/data/ok/peg_tclparam-tcloo/0_basic_arithmetic.
︙ | ︙ | |||
32 33 34 35 36 37 38 | method parse {channel} { my reset $channel my MAIN ; # Entrypoint for the generated code. return [my complete] } method parset {text} { | | | 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 | method parse {channel} { my reset $channel my MAIN ; # Entrypoint for the generated code. return [my complete] } method parset {text} { my reset {} my data $text my MAIN ; # Entrypoint for the generated code. return [my complete] } # # ## ### ###### ######## ############# ## BEGIN of GENERATED CODE. DO NOT EDIT. |
︙ | ︙ |
Changes to modules/pt/tests/data/ok/peg_tclparam-tcloo/10_notahead.
︙ | ︙ | |||
32 33 34 35 36 37 38 | method parse {channel} { my reset $channel my MAIN ; # Entrypoint for the generated code. return [my complete] } method parset {text} { | | | 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 | method parse {channel} { my reset $channel my MAIN ; # Entrypoint for the generated code. return [my complete] } method parset {text} { my reset {} my data $text my MAIN ; # Entrypoint for the generated code. return [my complete] } # # ## ### ###### ######## ############# ## BEGIN of GENERATED CODE. DO NOT EDIT. |
︙ | ︙ |
Changes to modules/pt/tests/data/ok/peg_tclparam-tcloo/1_functions.
︙ | ︙ | |||
32 33 34 35 36 37 38 | method parse {channel} { my reset $channel my MAIN ; # Entrypoint for the generated code. return [my complete] } method parset {text} { | | | 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 | method parse {channel} { my reset $channel my MAIN ; # Entrypoint for the generated code. return [my complete] } method parset {text} { my reset {} my data $text my MAIN ; # Entrypoint for the generated code. return [my complete] } # # ## ### ###### ######## ############# ## BEGIN of GENERATED CODE. DO NOT EDIT. |
︙ | ︙ |
Changes to modules/pt/tests/data/ok/peg_tclparam-tcloo/2_fun_arithmetic.
︙ | ︙ | |||
32 33 34 35 36 37 38 | method parse {channel} { my reset $channel my MAIN ; # Entrypoint for the generated code. return [my complete] } method parset {text} { | | | 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 | method parse {channel} { my reset $channel my MAIN ; # Entrypoint for the generated code. return [my complete] } method parset {text} { my reset {} my data $text my MAIN ; # Entrypoint for the generated code. return [my complete] } # # ## ### ###### ######## ############# ## BEGIN of GENERATED CODE. DO NOT EDIT. |
︙ | ︙ |
Changes to modules/pt/tests/data/ok/peg_tclparam-tcloo/3_peg_itself.
︙ | ︙ | |||
32 33 34 35 36 37 38 | method parse {channel} { my reset $channel my MAIN ; # Entrypoint for the generated code. return [my complete] } method parset {text} { | | | 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 | method parse {channel} { my reset $channel my MAIN ; # Entrypoint for the generated code. return [my complete] } method parset {text} { my reset {} my data $text my MAIN ; # Entrypoint for the generated code. return [my complete] } # # ## ### ###### ######## ############# ## BEGIN of GENERATED CODE. DO NOT EDIT. |
︙ | ︙ |
Changes to modules/pt/tests/data/ok/peg_tclparam-tcloo/4_choice.
︙ | ︙ | |||
32 33 34 35 36 37 38 | method parse {channel} { my reset $channel my MAIN ; # Entrypoint for the generated code. return [my complete] } method parset {text} { | | | 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 | method parse {channel} { my reset $channel my MAIN ; # Entrypoint for the generated code. return [my complete] } method parset {text} { my reset {} my data $text my MAIN ; # Entrypoint for the generated code. return [my complete] } # # ## ### ###### ######## ############# ## BEGIN of GENERATED CODE. DO NOT EDIT. |
︙ | ︙ |
Changes to modules/pt/tests/data/ok/peg_tclparam-tcloo/5_sequence.
︙ | ︙ | |||
32 33 34 35 36 37 38 | method parse {channel} { my reset $channel my MAIN ; # Entrypoint for the generated code. return [my complete] } method parset {text} { | | | 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 | method parse {channel} { my reset $channel my MAIN ; # Entrypoint for the generated code. return [my complete] } method parset {text} { my reset {} my data $text my MAIN ; # Entrypoint for the generated code. return [my complete] } # # ## ### ###### ######## ############# ## BEGIN of GENERATED CODE. DO NOT EDIT. |
︙ | ︙ |
Changes to modules/pt/tests/data/ok/peg_tclparam-tcloo/6_optional.
︙ | ︙ | |||
32 33 34 35 36 37 38 | method parse {channel} { my reset $channel my MAIN ; # Entrypoint for the generated code. return [my complete] } method parset {text} { | | | 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 | method parse {channel} { my reset $channel my MAIN ; # Entrypoint for the generated code. return [my complete] } method parset {text} { my reset {} my data $text my MAIN ; # Entrypoint for the generated code. return [my complete] } # # ## ### ###### ######## ############# ## BEGIN of GENERATED CODE. DO NOT EDIT. |
︙ | ︙ |
Changes to modules/pt/tests/data/ok/peg_tclparam-tcloo/7_kleene.
︙ | ︙ | |||
32 33 34 35 36 37 38 | method parse {channel} { my reset $channel my MAIN ; # Entrypoint for the generated code. return [my complete] } method parset {text} { | | | 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 | method parse {channel} { my reset $channel my MAIN ; # Entrypoint for the generated code. return [my complete] } method parset {text} { my reset {} my data $text my MAIN ; # Entrypoint for the generated code. return [my complete] } # # ## ### ###### ######## ############# ## BEGIN of GENERATED CODE. DO NOT EDIT. |
︙ | ︙ |
Changes to modules/pt/tests/data/ok/peg_tclparam-tcloo/8_pkleene.
︙ | ︙ | |||
32 33 34 35 36 37 38 | method parse {channel} { my reset $channel my MAIN ; # Entrypoint for the generated code. return [my complete] } method parset {text} { | | | 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 | method parse {channel} { my reset $channel my MAIN ; # Entrypoint for the generated code. return [my complete] } method parset {text} { my reset {} my data $text my MAIN ; # Entrypoint for the generated code. return [my complete] } # # ## ### ###### ######## ############# ## BEGIN of GENERATED CODE. DO NOT EDIT. |
︙ | ︙ |
Changes to modules/pt/tests/data/ok/peg_tclparam-tcloo/9_ahead.
︙ | ︙ | |||
32 33 34 35 36 37 38 | method parse {channel} { my reset $channel my MAIN ; # Entrypoint for the generated code. return [my complete] } method parset {text} { | | | 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 | method parse {channel} { my reset $channel my MAIN ; # Entrypoint for the generated code. return [my complete] } method parset {text} { my reset {} my data $text my MAIN ; # Entrypoint for the generated code. return [my complete] } # # ## ### ###### ######## ############# ## BEGIN of GENERATED CODE. DO NOT EDIT. |
︙ | ︙ |