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.
jimi a9ebf1b548 Refactor for speed optimizations... 9 years ago
README.md Initial commit... 9 years ago
bench0 Refactored Clock to only store minutes... 9 years ago
bench1 Refactor for speed optimizations... 9 years ago
cases_test.go Refactored Clock to only store minutes... 9 years ago
clock.go Refactor for speed optimizations... 9 years ago
clock_test.go Initial commit... 9 years ago

README.md

Clock

Implement a clock that handles times without dates.

Create a clock that is independent of date.

You should be able to add and subtract minutes to it.

Two clocks that represent the same time should be equal to each other.

To run the tests simply run the command go test in the exercise directory.

If the test suite contains benchmarks, you can run these with the -bench flag:

go test -bench .

For more detailed info about the Go track see the help page.

Source

Pairing session with Erin Drummond view source