From db14b8a100736a4261ecf9d784fb87ed298087fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Mart=C3=AD?= Date: Wed, 17 Feb 2016 17:45:34 +0000 Subject: [PATCH] Add test case with a single app --- index_test.go | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/index_test.go b/index_test.go index 2feca31..73853d7 100644 --- a/index_test.go +++ b/index_test.go @@ -62,8 +62,7 @@ func TestLoadIndexXML(t *testing.T) { }{ { ` - - + `, Index{ Repo: Repo{ @@ -72,6 +71,26 @@ func TestLoadIndexXML(t *testing.T) { }, }, }, + { + ` + + + foo.bar + Foo bar + + `, + Index{ + Repo: Repo{ + Name: "Foo", + }, + Apps: []App{ + { + ID: "foo.bar", + Name: "Foo bar", + }, + }, + }, + }, } for _, c := range tests { r := strings.NewReader(c.in)