------------------------->  GNU Sather - sourcefile  <-------------------------
-- Copyright (C) 1995 by International Computer Science Institute            --
-- This file is part of the GNU Sather library. It is free software; you may --
-- redistribute  and/or modify it under the terms of the GNU Library General --
-- Public  License (LGPL)  as published  by the  Free  Software  Foundation; --
-- either version 2 of the license, or (at your option) any later version.   --
-- This  library  is distributed  in the  hope that it will  be  useful, but --
-- WITHOUT ANY WARRANTY without even the implied warranty of MERCHANTABILITY --
-- or FITNESS FOR A PARTICULAR PURPOSE. See Doc/LGPL for more details.       --
-- The license text is also available from:  Free Software Foundation, Inc., --
-- 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA                     --
-------------->  Please email comments to <bug-sather@gnu.org>  <--------------

-- Author: Benedict A. Gomes <gomes@samosa.ICSI.Berkeley.EDU>

class FLTD_OUTPUT_TEST is
    include TEST;
    
    main is
	class_name("FLTD_OUTPUT");
	test("str 1",(0.1234567d).str,"0.123457"); -- ok? davids or om must
	-- verify that this is the desired behaviour.
	test("str prec=2",(-1234.12345d).str(2),"-1.2e+03");
	test("str prec=3",(-1234.12345d).str(3),"-1.23e+03");
	test("str prec=4",(1234.12345d).str(4),"1234");
	test("str prec=5",(1234.12345d).str(5),"1234.1");
	test("str prec=6",(1234.12345d).str(6),"1234.12");
	finish;
    end;
    
end; 
