Created
May 20, 2011 17:18
-
-
Save rsbohn/983353 to your computer and use it in GitHub Desktop.
Using the a421x70 regression test module
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ruleset a421x99 { | |
| meta { | |
| name "use regression module" | |
| description << sample use of regression module >> | |
| author "Randall Bohn" | |
| use module a421x70 alias Regression | |
| } | |
| dispatch {} | |
| global { | |
| } | |
| rule examples { | |
| select when pageview ".*" | |
| pre { | |
| } | |
| { | |
| Regression:begin('results'); | |
| Regression:new_section("isEqual(description, a, b)"); | |
| append('#results', Regression:isEqual("YES", "sample1", "sample1")); | |
| append('#results', Regression:isEqual("NOT EQUAL", "sample1", "Ouagadougou")); | |
| Regression:new_section("isPositive(n)"); | |
| append('#results', Regression:isPositive(">0", 100)); | |
| append('#results', Regression:isPositive("NOT >0", -100)); | |
| Regression:new_section("inRange(low,high,n)"); | |
| append('#results', Regression:inRange(10,20, 12)); | |
| append('#results', Regression:inRange(10,20, 9)); | |
| append('#results', Regression:inRange(10,20, 21)); | |
| } | |
| } | |
| } | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment