Exercism: Rust version of the 'Raindrops' exercise.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

112 lines
1.6 KiB

3 years ago
  1. #[test]
  2. fn test_1() {
  3. assert_eq!("1", raindrops::raindrops(1));
  4. }
  5. #[test]
  6. #[ignore]
  7. fn test_3() {
  8. assert_eq!("Pling", raindrops::raindrops(3));
  9. }
  10. #[test]
  11. #[ignore]
  12. fn test_5() {
  13. assert_eq!("Plang", raindrops::raindrops(5));
  14. }
  15. #[test]
  16. #[ignore]
  17. fn test_7() {
  18. assert_eq!("Plong", raindrops::raindrops(7));
  19. }
  20. #[test]
  21. #[ignore]
  22. fn test_6() {
  23. assert_eq!("Pling", raindrops::raindrops(6));
  24. }
  25. #[test]
  26. #[ignore]
  27. fn test_8() {
  28. assert_eq!("8", raindrops::raindrops(8));
  29. }
  30. #[test]
  31. #[ignore]
  32. fn test_9() {
  33. assert_eq!("Pling", raindrops::raindrops(9));
  34. }
  35. #[test]
  36. #[ignore]
  37. fn test_10() {
  38. assert_eq!("Plang", raindrops::raindrops(10));
  39. }
  40. #[test]
  41. #[ignore]
  42. fn test_14() {
  43. assert_eq!("Plong", raindrops::raindrops(14));
  44. }
  45. #[test]
  46. #[ignore]
  47. fn test_15() {
  48. assert_eq!("PlingPlang", raindrops::raindrops(15));
  49. }
  50. #[test]
  51. #[ignore]
  52. fn test_21() {
  53. assert_eq!("PlingPlong", raindrops::raindrops(21));
  54. }
  55. #[test]
  56. #[ignore]
  57. fn test_25() {
  58. assert_eq!("Plang", raindrops::raindrops(25));
  59. }
  60. #[test]
  61. #[ignore]
  62. fn test_27() {
  63. assert_eq!("Pling", raindrops::raindrops(27));
  64. }
  65. #[test]
  66. #[ignore]
  67. fn test_35() {
  68. assert_eq!("PlangPlong", raindrops::raindrops(35));
  69. }
  70. #[test]
  71. #[ignore]
  72. fn test_49() {
  73. assert_eq!("Plong", raindrops::raindrops(49));
  74. }
  75. #[test]
  76. #[ignore]
  77. fn test_52() {
  78. assert_eq!("52", raindrops::raindrops(52));
  79. }
  80. #[test]
  81. #[ignore]
  82. fn test_105() {
  83. assert_eq!("PlingPlangPlong", raindrops::raindrops(105));
  84. }
  85. #[test]
  86. #[ignore]
  87. fn test_3125() {
  88. assert_eq!("Plang", raindrops::raindrops(3125));
  89. }
  90. #[test]
  91. #[ignore]
  92. fn test_12121() {
  93. assert_eq!("12121", raindrops::raindrops(12_121));
  94. }