Highly Modular FizzBuzz
Testing ruleset [(MultipleOf 3, "Fizz"); (MultipleOf 5, "Buzz")]
1
2
Fizz
4
Buzz
Fizz
7
8
Fizz
Buzz
11
Fizz
13
14
FizzBuzz
16
17
Fizz
19
Buzz
Fizz
22
23
Fizz
Buzz
26
Fizz
28
29
FizzBuzz
31
32
Fizz
34
Buzz
Fizz
37
38
Fizz
Buzz
41
Fizz
43
44
FizzBuzz
46
47
Fizz
49
Buzz
Fizz
52
53
Fizz
Buzz
56
Fizz
58
59
FizzBuzz
61
62
Fizz
64
Buzz
Fizz
67
68
Fizz
Buzz
71
Fizz
73
74
FizzBuzz
Testing ruleset [(MultipleOf 3, "Fizz"); (MultipleOf 5, "Buzz");
(And [MultipleOf 4; After 10], "Wack")]
1
2
Fizz
4
Buzz
Fizz
7
8
Fizz
Buzz
11
FizzWack
13
14
FizzBuzz
Wack
17
Fizz
19
BuzzWack
Fizz
22
23
FizzWack
Buzz
26
Fizz
Wack
29
FizzBuzz
31
Wack
Fizz
34
Buzz
FizzWack
37
38
Fizz
BuzzWack
41
Fizz
43
Wack
FizzBuzz
46
47
FizzWack
49
Buzz
Fizz
Wack
53
Fizz
Buzz
Wack
Fizz
58
59
FizzBuzzWack
61
62
Fizz
Wack
Buzz
Fizz
67
Wack
Fizz
Buzz
71
FizzWack
73
74
FizzBuzz
Testing ruleset [(Or [MultipleOf 4; And [MultipleOf 3; MultipleOf 5]], "Hey");
(CustomRule <fun:clo@59>, "Now")]
1
2
3
HeyNow
5
6
7
HeyNow
9
10
11
HeyNow
13
14
HeyNow
HeyNow
17
18
19
HeyNow
21
22
23
HeyNow
25
26
27
HeyNow
29
HeyNow
31
HeyNow
33
34
35
HeyNow
37
38
39
HeyNow
41
42
43
HeyNow
HeyNow
46
47
HeyNow
49
50
51
HeyNow
53
54
55
HeyNow
57
58
59
HeyNow
61
62
63
HeyNow
65
66
67
HeyNow
69
70
71
HeyNow
73
74
HeyNow
Testing ruleset [(Or
[MultipleOf 3; EqualTo 10; And [After 50; MultipleOf 2];
Or [Before 5; EqualTo 5; MultipleOf 10]], "Wow")]
Wow
Wow
Wow
Wow
Wow
Wow
7
8
Wow
Wow
11
Wow
13
14
Wow
16
17
Wow
19
Wow
Wow
22
23
Wow
25
26
Wow
28
29
Wow
31
32
Wow
34
35
Wow
37
38
Wow
Wow
41
Wow
43
44
Wow
46
47
Wow
49
Wow
Wow
Wow
53
Wow
55
Wow
Wow
Wow
59
Wow
61
Wow
Wow
Wow
65
Wow
67
Wow
Wow
Wow
71
Wow
73
Wow
Wow
|
|