fmap_test.sa
Generated by gen_html_sa_files from ICSI. Contact gomes@icsi.berkeley.edu for details
---------------------------> Sather 1.1 source file <--------------------------
-- test_fmap.sa:
-- Author: Benedict A. Gomes <gomes@samosa.ICSI.Berkeley.EDU>
-- Copyright (C) 1995, International Computer Science Institute
-- $Id: fmap_test.sa,v 1.2 1996/04/09 10:04:57 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_FMAP
class TEST_FMAP is
include TEST;
main is
class_name("FMAP");
f ::= #FMAP{INT,STR};
f := f.insert(1,"test1");
f := f.insert(2,"test2");
test("string version",f.str,"{[1]= test1 [2]= test2 }");
finish;
end;
end; -- class TEST_FMAP