summaryrefslogtreecommitdiffstats
path: root/tests/oo.test
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2020-11-03 15:32:46 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2020-11-03 15:32:46 (GMT)
commit8607752aa65f484ab844296ce90d2d2e5bfc2259 (patch)
tree645dfbaee93b71a5ba9a4458772d4b4719c83ae1 /tests/oo.test
parent3b0ee42270085b039b75e2e27a3a145399a1bfac (diff)
downloadtcl-8607752aa65f484ab844296ce90d2d2e5bfc2259.zip
tcl-8607752aa65f484ab844296ce90d2d2e5bfc2259.tar.gz
tcl-8607752aa65f484ab844296ce90d2d2e5bfc2259.tar.bz2
Case-sensitive package names
Diffstat (limited to 'tests/oo.test')
-rw-r--r--tests/oo.test24
1 files changed, 12 insertions, 12 deletions
diff --git a/tests/oo.test b/tests/oo.test
index b8ae30d..eb90aea 100644
--- a/tests/oo.test
+++ b/tests/oo.test
@@ -7,7 +7,7 @@
# See the file "license.terms" for information on usage and redistribution of
# this file, and for a DISCLAIMER OF ALL WARRANTIES.
-package require TclOO 1.0.3
+package require tcl::oo 1.0.3
if {"::tcltest" ni [namespace children]} {
package require tcltest 2.5
namespace import -force ::tcltest::*
@@ -38,14 +38,14 @@ if {[testConstraint memory]} {
test oo-0.1 {basic test of OO's ability to clean up its initial state} {
interp create t
t eval {
- package require TclOO
+ package require tcl::oo
}
interp delete t
} {}
test oo-0.2 {basic test of OO's ability to clean up its initial state} {
set i [interp create]
interp eval $i {
- package require TclOO
+ package require tcl::oo
namespace delete ::
}
interp delete $i
@@ -79,7 +79,7 @@ test oo-0.6 {cleaning the core class pair; way #1} -setup {
interp create t
} -body {
t eval {
- package require TclOO
+ package require tcl::oo
namespace path oo
list [catch {class destroy} m] $m [catch {object destroy} m] $m
}
@@ -90,7 +90,7 @@ test oo-0.7 {cleaning the core class pair; way #2} -setup {
interp create t
} -body {
t eval {
- package require TclOO
+ package require tcl::oo
namespace path oo
list [catch {object destroy} m] $m [catch {class destroy} m] $m
}
@@ -109,10 +109,10 @@ test oo-0.8 {leak in variable management} -setup {
} -cleanup {
foo destroy
} -result 0
-test oo-0.9 {various types of presence of the TclOO package} {
- list [lsearch -nocase -all -inline [package names] tcloo] \
- [package present TclOO] [expr {$::oo::patchlevel in [package versions TclOO]}]
-} [list TclOO $::oo::patchlevel 1]
+test oo-0.9 {various types of presence of the tcl::oo package} {
+ list [lsearch -nocase -all -inline [package names] tcl::oo] \
+ [package present tcl::oo] [expr {$::oo::patchlevel in [package versions tcl::oo]}]
+} [list tcl::oo $::oo::patchlevel 1]
test oo-1.1 {basic test of OO functionality: no classes} {
set result {}
@@ -383,7 +383,7 @@ test oo-2.1 {basic test of OO functionality: constructor} -setup {
# we're modifying the root object class's constructor
interp create subinterp
subinterp eval {
- package require TclOO
+ package require tcl::oo
}
} -body {
subinterp eval {
@@ -514,7 +514,7 @@ test oo-3.1 {basic test of OO functionality: destructor} -setup {
# modifying the root object class's constructor
interp create subinterp
subinterp eval {
- package require TclOO
+ package require tcl::oo
}
} -body {
subinterp eval {
@@ -534,7 +534,7 @@ test oo-3.2 {basic test of OO functionality: destructor} -setup {
# we're modifying the root object class's constructor
interp create subinterp
subinterp eval {
- package require TclOO
+ package require tcl::oo
}
} -body {
subinterp eval {