diff --git a/test-tc.py b/test-tc.py index 985dd65..11804b0 100755 --- a/test-tc.py +++ b/test-tc.py @@ -2,7 +2,7 @@ # Copyright (c) 2003-2004 TundraWare Inc. All Rights Reserved. PROGNAME = "tconfpy Test Driver" -RCSID = "$Id: test-tc.py,v 1.115 2004/03/20 10:48:03 tundra Exp $" +RCSID = "$Id: test-tc.py,v 1.116 2004/03/20 10:53:09 tundra Exp $" VERSION = RCSID.split()[2] # Copyright Information @@ -18,7 +18,7 @@ import tconfpy import sys -# Translate booleans into equivlent writeable state +# Translate booleans into equivalent writeable state TF = {True:"RW", False:"RO"} @@ -32,7 +32,7 @@ retval = str(val) + " " * (15 - len(val)) - for v, p in ((d.Value, 10), + for v, p in ((d.Value, 12), (TF[d.Writeable], 2), (str(d.Type).split()[1][1:-2], 7), (d.Default, 8), @@ -127,11 +127,16 @@ self.Default = 39-4j self.Type = tconfpy.TYPE_COMPLEX -# Instantiate one of these -mc = mycmplx() +# Instantiate some of these +mc1 = mycmplx() +mc2 = mycmplx() -# And stuff it in the symbol table -symtbl["MyComplex"] = mc +mc2.Value = 8-3.14159j +mc2.Writeable = False + +# And stuff them into the symbol table +symtbl["MyComplex1"] = mc1 +symtbl["MyComplex2"] = mc2 # Make sure we got legit arguments