aboutsummaryrefslogtreecommitdiff
path: root/rust/raindrops/tests/raindrops.rs
diff options
context:
space:
mode:
Diffstat (limited to 'rust/raindrops/tests/raindrops.rs')
-rw-r--r--rust/raindrops/tests/raindrops.rs96
1 files changed, 96 insertions, 0 deletions
diff --git a/rust/raindrops/tests/raindrops.rs b/rust/raindrops/tests/raindrops.rs
new file mode 100644
index 0000000..000c639
--- /dev/null
+++ b/rust/raindrops/tests/raindrops.rs
@@ -0,0 +1,96 @@
1use raindrops;
2
3#[test]
4fn test_1() {
5 assert_eq!("1", raindrops::raindrops(1));
6}
7
8#[test]
9fn test_3() {
10 assert_eq!("Pling", raindrops::raindrops(3));
11}
12
13#[test]
14fn test_5() {
15 assert_eq!("Plang", raindrops::raindrops(5));
16}
17
18#[test]
19fn test_7() {
20 assert_eq!("Plong", raindrops::raindrops(7));
21}
22
23#[test]
24fn test_6() {
25 assert_eq!("Pling", raindrops::raindrops(6));
26}
27
28#[test]
29fn test_8() {
30 assert_eq!("8", raindrops::raindrops(8));
31}
32
33#[test]
34fn test_9() {
35 assert_eq!("Pling", raindrops::raindrops(9));
36}
37
38#[test]
39fn test_10() {
40 assert_eq!("Plang", raindrops::raindrops(10));
41}
42
43#[test]
44fn test_14() {
45 assert_eq!("Plong", raindrops::raindrops(14));
46}
47
48#[test]
49fn test_15() {
50 assert_eq!("PlingPlang", raindrops::raindrops(15));
51}
52
53#[test]
54fn test_21() {
55 assert_eq!("PlingPlong", raindrops::raindrops(21));
56}
57
58#[test]
59fn test_25() {
60 assert_eq!("Plang", raindrops::raindrops(25));
61}
62
63#[test]
64fn test_27() {
65 assert_eq!("Pling", raindrops::raindrops(27));
66}
67
68#[test]
69fn test_35() {
70 assert_eq!("PlangPlong", raindrops::raindrops(35));
71}
72
73#[test]
74fn test_49() {
75 assert_eq!("Plong", raindrops::raindrops(49));
76}
77
78#[test]
79fn test_52() {
80 assert_eq!("52", raindrops::raindrops(52));
81}
82
83#[test]
84fn test_105() {
85 assert_eq!("PlingPlangPlong", raindrops::raindrops(105));
86}
87
88#[test]
89fn test_3125() {
90 assert_eq!("Plang", raindrops::raindrops(3125));
91}
92
93#[test]
94fn test_12121() {
95 assert_eq!("12121", raindrops::raindrops(12_121));
96}