summaryrefslogtreecommitdiff
path: root/go/gigasecond/cases_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'go/gigasecond/cases_test.go')
-rw-r--r--go/gigasecond/cases_test.go31
1 files changed, 31 insertions, 0 deletions
diff --git a/go/gigasecond/cases_test.go b/go/gigasecond/cases_test.go
new file mode 100644
index 0000000..520101b
--- /dev/null
+++ b/go/gigasecond/cases_test.go
@@ -0,0 +1,31 @@
+package gigasecond
+
+// Source: exercism/x-common
+// Commit: 1e9e232 Merge pull request #45 from soniakeys/gigasecond-tests
+
+// Add one gigasecond to the input.
+var addCases = []struct {
+ in string
+ want string
+}{
+ {
+ "2011-04-25",
+ "2043-01-01T01:46:40",
+ },
+ {
+ "1977-06-13",
+ "2009-02-19T01:46:40",
+ },
+ {
+ "1959-07-19",
+ "1991-03-27T01:46:40",
+ },
+ {
+ "2015-01-24T22:00:00",
+ "2046-10-02T23:46:40",
+ },
+ {
+ "2015-01-24T23:59:59",
+ "2046-10-03T01:46:39",
+ },
+}