aboutsummaryrefslogtreecommitdiff
path: root/job/job_test.go
blob: 74202203b1b6b5f387c6f36e921afb89a7587936 (plain)
1
2
3
4
5
6
7
8
9
10
package job

import "testing"

func TestString(t *testing.T) {
	j := Job{Name: "name", Timestamp: 10, Success: true}
	if j.String() != "Job { Name: \"name\", Timestamp: \"10\", Success: \"true\" }" {
		t.Errorf("test string error : %s", j.String())
	}
}