Evan Reichard
cdec621043
All checks were successful
continuous-integration/drone/push Build is passing
13 lines
197 B
Go
13 lines
197 B
Go
package api
|
|
|
|
import "testing"
|
|
|
|
func TestNiceSeconds(t *testing.T) {
|
|
want := "22d 7h 39m 31s"
|
|
nice := niceSeconds(1928371)
|
|
|
|
if nice != want {
|
|
t.Fatalf(`Expected: %v, Got: %v`, want, nice)
|
|
}
|
|
}
|