PageRenderTime 22ms CodeModel.GetById 14ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 1ms

/src/wrappers/glib/test/test_glist00.e

http://github.com/tybor/Liberty
Specman e | 25 lines | 20 code | 5 blank | 0 comment | 0 complexity | 1f2ac080d9e92a2c9e8434343d486b6c MD5 | raw file
 1class TEST_GLIST00 
 2
 3inherit EIFFELTEST_TOOLS
 4
 5creation make 
 6
 7feature 
 8	make is
 9		local
10			other_dates: G_LIST[G_DATE]
11		do
12			create {G_DATES} dates.make
13			dates.add_last(create {G_DATE}.make_dmy(10,7,1976))
14			dates.add_last(create {G_DATE}.make_dmy(11,9,2001))
15			assert (dates.first = dates.first)
16			assert (dates.count = 2)
17			assert (dates.item(2) = dates.item(2))
18			
19			create {G_DATES}other_dates.copy(dates)
20			assert (other_dates.first = dates.first)
21			io.put_string("test finished successfully%N") -- this message is just there to workaround a se problem
22		end
23
24	dates: G_DATES
25end