Exercism: Go 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.

25 lines
438 B

9 years ago
  1. package raindrops
  2. // Source: exercism/x-common
  3. // Commit: 3b07e53 Merge pull request #117 from mikeyjcat/add-raindrops-json
  4. var tests = []struct {
  5. input int
  6. expected string
  7. }{
  8. {1, "1"},
  9. {3, "Pling"},
  10. {5, "Plang"},
  11. {7, "Plong"},
  12. {6, "Pling"},
  13. {9, "Pling"},
  14. {10, "Plang"},
  15. {14, "Plong"},
  16. {15, "PlingPlang"},
  17. {21, "PlingPlong"},
  18. {25, "Plang"},
  19. {35, "PlangPlong"},
  20. {49, "Plong"},
  21. {52, "52"},
  22. {105, "PlingPlangPlong"},
  23. }