Exercism: Go version of the 'Clock' 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.

23 lines
605 B

  1. # Clock
  2. Implement a clock that handles times without dates.
  3. Create a clock that is independent of date.
  4. You should be able to add and subtract minutes to it.
  5. Two clocks that represent the same time should be equal to each other.
  6. To run the tests simply run the command `go test` in the exercise directory.
  7. If the test suite contains benchmarks, you can run these with the `-bench`
  8. flag:
  9. go test -bench .
  10. For more detailed info about the Go track see the [help
  11. page](http://exercism.io/languages/go).
  12. ## Source
  13. Pairing session with Erin Drummond [view source](https://twitter.com/ebdrummond)