diff options
author | escoffon <escoffon> | 1998-10-17 00:21:39 (GMT) |
---|---|---|
committer | escoffon <escoffon> | 1998-10-17 00:21:39 (GMT) |
commit | 0d09c361456f377474244ee597e06a8ab8105de3 (patch) | |
tree | e3d33d876884b1d446bc420c01d572efe535939f /tests/pkg/simple.tcl | |
parent | 0d1101d7ed7ac7f7a09b67d881c3883fb3f16f2b (diff) | |
download | tcl-0d09c361456f377474244ee597e06a8ab8105de3.zip tcl-0d09c361456f377474244ee597e06a8ab8105de3.tar.gz tcl-0d09c361456f377474244ee597e06a8ab8105de3.tar.bz2 |
Added the pkg_mkIndex test suite
Diffstat (limited to 'tests/pkg/simple.tcl')
-rw-r--r-- | tests/pkg/simple.tcl | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/pkg/simple.tcl b/tests/pkg/simple.tcl new file mode 100644 index 0000000..a2cf121 --- /dev/null +++ b/tests/pkg/simple.tcl @@ -0,0 +1,23 @@ +# simple.tcl -- +# +# Test package for pkg_mkIndex. This is a simple package, just to check +# basic functionality. +# +# Copyright (c) 1998 by Scriptics Corporation. +# All rights reserved. +# +# RCS: @(#) $Id: simple.tcl,v 1.1 1998/10/17 00:21:43 escoffon Exp $ + +package provide simple 1.0 + +namespace eval simple { + namespace export lower upper +} + +proc simple::lower { stg } { + return [string tolower $stg] +} + +proc simple::upper { stg } { + return [string toupper $stg] +} |