From 355be846a595f09ef0e9d9f8cae3c9e32afe0241 Mon Sep 17 00:00:00 2001 From: sentriz Date: Sat, 6 Jun 2020 17:13:05 +0100 Subject: [PATCH] add some more specid test cases --- server/ctrlsubsonic/specid/ids_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server/ctrlsubsonic/specid/ids_test.go b/server/ctrlsubsonic/specid/ids_test.go index c2c826d..fadd3ff 100644 --- a/server/ctrlsubsonic/specid/ids_test.go +++ b/server/ctrlsubsonic/specid/ids_test.go @@ -15,7 +15,9 @@ func TestParseID(t *testing.T) { {param: "al-45", expType: Album, expValue: 45}, {param: "ar-2", expType: Artist, expValue: 2}, {param: "tr-43", expType: Track, expValue: 43}, + {param: "al-3", expType: Album, expValue: 3}, {param: "xx-1", expErr: ErrBadPrefix}, + {param: "1", expErr: ErrBadSeparator}, {param: "al-howdy", expErr: ErrNotAnInt}, } for _, tcase := range tcases {