.. | ||
cases_test.go | ||
gigasecond_test.go | ||
gigasecond.go | ||
README.md |
Gigasecond
Write a program that will calculate the date that someone turned or will celebrate their 1 Gs anniversary.
A gigasecond is one billion (10**9) seconds.
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
Chapter 9 in Chris Pine's online Learn to Program tutorial. view source