indexing description: "Test for DATE.date_valid_default" status: "See note at end of class" date: "$Date$" revision: "$Revision$" class VALIDITY_TEST inherit TEST_CASE EXCEPTIONS export {NONE} all end create make feature -- Access Name: STRING is "Validity test" feature -- Status setting set_date_string (s: STRING) is -- Set date string to `s'. require non_empty_string: s /= Void and then not s.empty do date_string := s ensure string_set: date_string = s end feature -- Basic operations do_test is -- Execute test. local d: DATE do if date_string = Void then raise ("No date set") end create d.make_now assert (d.date_valid_default (date_string), "Date valid?") end feature {NONE} -- Implementation date_string: STRING -- String representation of date end -- class VALIDITY_TEST --|---------------------------------------------------------------------- --| EiffelTest: Reusable components for developing unit tests. --| Copyright (C) 2000-2001 Interactive Software Engineering Inc (ISE). --| EiffelTest may be used by anyone as FREE SOFTWARE to --| develop any product, public-domain or commercial, without --| payment to ISE, under the terms of the ISE Free Eiffel Library --| License (IFELL) at http://eiffel.com/products/base/license.html. --| --| Interactive Software Engineering Inc. --| ISE Building, 2nd floor --| 360 Storke Road, Goleta, CA 93117 USA --| Telephone 805-685-1006, Fax 805-685-6869 --| Electronic mail --| Customer support e-mail --| For latest info see award-winning pages: http://www.eiffel.com --|----------------------------------------------------------------------