From 80339a943b994f2a556c1c74ec4422af7c7a9a72 Mon Sep 17 00:00:00 2001 From: Bel LaPointe Date: Fri, 31 Dec 2021 15:28:44 -0500 Subject: [PATCH] test ts fills zero --- pttodo/ts_test.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pttodo/ts_test.go b/pttodo/ts_test.go index 23dc44f..82fe17c 100644 --- a/pttodo/ts_test.go +++ b/pttodo/ts_test.go @@ -27,4 +27,13 @@ func TestJSONTS(t *testing.T) { if 123 != ts2 { t.Fatal(ts2) } + + var ts3 TS + if b, err := json.Marshal(TS(0)); err != nil { + t.Fatal(err) + } else if err := json.Unmarshal(b, &ts3); err != nil { + t.Fatal(err) + } else if ts3 == (TS(0)) { + t.Fatal(ts3) + } }