tup_test.sa
Generated by gen_html_sa_files from ICSI. Contact gomes@icsi.berkeley.edu for details
---------------------------> Sather 1.1 source file <--------------------------
-- test_tup.sa:
-- Author: Benedict A. Gomes <gomes@samosa.ICSI.Berkeley.EDU>
-- Copyright (C) 1995, International Computer Science Institute
-- $Id: tup_test.sa,v 1.2 1996/04/09 10:05:32 borisv Exp $
--
-- COPYRIGHT NOTICE: This code is provided WITHOUT ANY WARRANTY
-- and is subject to the terms of the SATHER LIBRARY GENERAL PUBLIC
-- LICENSE contained in the file: Sather/Doc/License of the
-- Sather distribution. The license is also available from ICSI,
-- 1947 Center St., Suite 600, Berkeley CA 94704, USA.
class TEST_TUP
class TEST_TUP is
include TEST;
main is
class_name("TUP");
f: TUP{INT,INT} := #(1,3);
test("str",f,"{1,3}");
g: TUP{INT,STR} := #(1,"test");
test("str",g,"{1,test}");
h: TUP{INT} := #(1);
test("str",h,"{1}");
i: TUP{INT,STR,INT} := #(1,"test",5);
test("str",i,"{1,test,5}");
j: TUP{INT,STR,INT,STR} := #(1,"test",5,"test3");
test("str",j,"{1,test,5,test3}");
finish;
end;
end; -- class TEST_TUP