Sha256: f8b572659744b9dd79d5fadde01acb10d3a9ade7a1059f771cce6affc4de9535

Contents?: true

Size: 1.14 KB

Versions: 77

Compression:

Stored size: 1.14 KB

Contents

package space

// Source: exercism/problem-specifications
// Commit: 8d4df79 space-age: Apply new "input" policy
// Problem Specifications Version: 1.1.0

var testCases = []struct {
	description string
	planet      Planet
	seconds     float64
	expected    float64
}{
	{
		description: "age on Earth",
		planet:      "Earth",
		seconds:     1000000000,
		expected:    31.69,
	},
	{
		description: "age on Mercury",
		planet:      "Mercury",
		seconds:     2134835688,
		expected:    280.88,
	},
	{
		description: "age on Venus",
		planet:      "Venus",
		seconds:     189839836,
		expected:    9.78,
	},
	{
		description: "age on Mars",
		planet:      "Mars",
		seconds:     2329871239,
		expected:    39.25,
	},
	{
		description: "age on Jupiter",
		planet:      "Jupiter",
		seconds:     901876382,
		expected:    2.41,
	},
	{
		description: "age on Saturn",
		planet:      "Saturn",
		seconds:     3000000000,
		expected:    3.23,
	},
	{
		description: "age on Uranus",
		planet:      "Uranus",
		seconds:     3210123456,
		expected:    1.21,
	},
	{
		description: "age on Neptune",
		planet:      "Neptune",
		seconds:     8210123456,
		expected:    1.58,
	},
}

Version data entries

77 entries across 77 versions & 1 rubygems

Version Path
trackler-2.2.1.139 tracks/go/exercises/space-age/cases_test.go
trackler-2.2.1.138 tracks/go/exercises/space-age/cases_test.go
trackler-2.2.1.137 tracks/go/exercises/space-age/cases_test.go
trackler-2.2.1.136 tracks/go/exercises/space-age/cases_test.go
trackler-2.2.1.135 tracks/go/exercises/space-age/cases_test.go
trackler-2.2.1.134 tracks/go/exercises/space-age/cases_test.go
trackler-2.2.1.133 tracks/go/exercises/space-age/cases_test.go
trackler-2.2.1.132 tracks/go/exercises/space-age/cases_test.go
trackler-2.2.1.131 tracks/go/exercises/space-age/cases_test.go
trackler-2.2.1.130 tracks/go/exercises/space-age/cases_test.go
trackler-2.2.1.129 tracks/go/exercises/space-age/cases_test.go
trackler-2.2.1.128 tracks/go/exercises/space-age/cases_test.go
trackler-2.2.1.127 tracks/go/exercises/space-age/cases_test.go
trackler-2.2.1.126 tracks/go/exercises/space-age/cases_test.go
trackler-2.2.1.125 tracks/go/exercises/space-age/cases_test.go
trackler-2.2.1.124 tracks/go/exercises/space-age/cases_test.go
trackler-2.2.1.123 tracks/go/exercises/space-age/cases_test.go
trackler-2.2.1.122 tracks/go/exercises/space-age/cases_test.go
trackler-2.2.1.121 tracks/go/exercises/space-age/cases_test.go
trackler-2.2.1.120 tracks/go/exercises/space-age/cases_test.go