From adabfe86a73b97671145562ba2aba723f7cfe746 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Mart=C3=AD?= Date: Thu, 18 Feb 2016 16:25:04 +0000 Subject: [PATCH] Test comma-separated, dates and hex values --- index_test.go | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/index_test.go b/index_test.go index d078497..a4bb435 100644 --- a/index_test.go +++ b/index_test.go @@ -8,6 +8,7 @@ import ( "reflect" "strings" "testing" + "time" ) func TestTextDesc(t *testing.T) { @@ -66,25 +67,31 @@ func TestLoadIndexXML(t *testing.T) { foo.bar Foo bar + Cat1,Cat2 + 2015-10-02 1.0 1 + 0123456789abcdef `, Index{ Repo: Repo{ - Name: "Foo", + Name: "Foo", Version: 14, }, Apps: []App{ { - ID: "foo.bar", - Name: "Foo bar", + ID: "foo.bar", + Name: "Foo bar", + Categs: []string{"Cat1", "Cat2"}, + Added: DateVal{time.Date(2015, 10, 2, 0, 0, 0, 0, time.UTC)}, Apks: []Apk{ { VName: "1.0", VCode: 1, + Sig: []byte{1, 35, 69, 103, 137, 171, 205, 239}, }, }, },