home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.cs.arizona.edu
/
ftp.cs.arizona.edu.tar
/
ftp.cs.arizona.edu
/
icon
/
historic
/
v941.tgz
/
icon.v941src.tar
/
icon.v941src
/
ipl
/
packs
/
idol
/
bi_test.iol
< prev
next >
Wrap
Text File
|
2000-07-29
|
677b
|
31 lines
#
# Tests for the various builtins
#
procedure main()
x := Table(1)
write("\nTesting class ",x$class())
write("Fields:")
every write("\t", x$fieldnames )
write("Methods:")
every write("\t", x$methodnames )
write()
x$setElement("world","hello")
write(x$getElement("world"))
write(x$getElement("hello"))
x := Deque()
write("\nTesting class ",x$class())
x$push("hello")
x$push("world")
write("My deque is size ",$*x)
every write("give me a ",$!x)
write("A random element is ",$?x)
write("getting ",x$get()," popping ",x$pop())
x := List(["Tucson", "Pima", 85721])
write("\nTesting class ",x$class())
every write("give me a ",$!x)
end