|
From: Dave M. <dm...@cs...> - 2003-08-06 17:36:53
|
Hi:
Please do a cvs update. I believe the issue is fixed.
Cheers,
DM
Jonathan S. Ostroff wrote:
>The little test case below seems to run fine.
>
>The only problem I have seen is the printout for a violation case that fails
>to fail!. With that fixed we should be ready to roll.
>
>Good job.
>
>Jonathan
>
>=======
>
>class
> TEST
>inherit
> UNIT_TEST
> redefine setup, teardown end
>creation
> make
>feature
>
> make is
> do
> make_test
> add_boolean_case (agent test1)
> add_boolean_case (agent test2)
> add_violation_case (agent test3)
> add_boolean_case (agent test4)
> add_boolean_case (agent test5)
> to_html ("tests.htm")
> end
>
>feature -- cases
> test1: BOOLEAN is
> local
> a: ARRAY[INTEGER]
> do
> comment("test1")
> a := <<1, 2, 3, 4, 5 >>
> Result := a.count = 5 and a.item(5) = 5
> end
>
> test2: BOOLEAN is
> local
> a: ARRAY[INTEGER]
> do
> comment("test2")
> a := <<1, 2, 3, 4, 5 >>
> Result := a.count = 5 and a.item(3) = 3
> end
>
> test3 is
> local
> a: ARRAY[INTEGER]
> b: BOOLEAN
> do
> comment("test3")
> a := <<1, 2, 3, 4, 5 >>
> b := a.count = 5 and a.item(6) = 3
> end
>
> test4: BOOLEAN is
> do
> comment("test4")
> Result := c.count = 5 and c.item(3) = 3
> c.force(6,6)
> end
>
> test5: BOOLEAN is
> do
> comment("test5")
> Result := c.count = 5 and c.item(3) = 3 and d = 1
> -- d = 6 without teardown
> end
>
>
>feature -- fixture
> c: ARRAY[INTEGER]
> d: INTEGER
>
> setup is
> do
> c := <<1, 2, 3, 4, 5 >>
> d := d + 1
> end
>
> teardown is
> do
> d := 0
> end
>
>
>
>end -- class TEST
>
>
>
>-------------------------------------------------------
>This SF.Net email sponsored by: Free pre-built ASP.NET sites including
>Data Reports, E-commerce, Portals, and Forums are available now.
>Download today and enter to win an XBOX or Visual Studio .NET.
>http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
>_______________________________________________
>Etester-devel mailing list
>Ete...@li...
>https://lists.sourceforge.net/lists/listinfo/etester-devel
>
>
|