Skip to content

Commit a5ad7c5

Browse files
committed
Updated readme
1 parent 565b350 commit a5ad7c5

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

README.rdoc

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
After wasting too much time trying to figure out ASUnit and feeling sick about how bloated its codebase was I decided to roll my own. This is the result.
88

9-
Note: I realized to day I had been looking only at asunit2 when I should have been looking at the refactored and better looking asunit25. That said asunit25 still looks like Java and Actionscript is not Java. LeanUnit is a whole lot leaner and to the point if you'll pardon my shameless self promotion.
9+
Note: I later realized I had been looking only at asunit2 when I should have been looking at the refactored and better looking asunit25. That said asunit25 still looks like Java and Actionscript is not Java. LeanUnit is a whole lot leaner and to the point if you'll pardon my shameless self promotion.
1010

1111
== REQUIREMENTS
1212

@@ -109,17 +109,22 @@ Then compile from the command line using something like:
109109

110110
Now you can run the generated .swf through Flash Player or from your webbrowser and watch the results.
111111

112-
=== Running Multiple Test Cases Using TestSuite
112+
=== Running Multiple Test Cases
113113

114-
If you want to run more than one test case but still only do one report for all tests you can use the TestSuite class. Instantiate a TestSuite and add cases using the addCase function like in the example.
114+
You can add any number of test cases you want to run to your test suite before running it. TestSuite extends Array so you can work with it just like an array.
115115

116116
import leanUnit.*
117117
import test.*
118118

119-
var testSuite = new TestSuite()
120-
testSuite.addCase( new StringTest() )
121-
testSuite.addCase( new ArrayTest() )
122-
testSuite.run()
119+
// The horisontal way
120+
var suite = new TestSuite( StringTest, ArrayTest )
121+
suite.run()
122+
123+
// The vertical way
124+
var suite = new TestSuite()
125+
suite.push( StringTest )
126+
suite.push( ArrayTest )
127+
suite.run()
123128

124129

125130
== LICENSE

0 commit comments

Comments
 (0)