From be44f7e37c8faf3014987411eff009b396d3ed79 Mon Sep 17 00:00:00 2001 From: Eduard Urbach Date: Fri, 23 Mar 2018 04:12:06 +0100 Subject: [PATCH] Added more route tests --- tests.go | 40 ++++++++++++++++++++++++++++++++++++---- 1 file changed, 36 insertions(+), 4 deletions(-) diff --git a/tests.go b/tests.go index d1076e9a..1148c423 100644 --- a/tests.go +++ b/tests.go @@ -62,22 +62,42 @@ var routeTests = map[string][]string{ "/+Akyoto/animelist/watching", }, + "/user/:nick/animelist/watching/from/:index": []string{ + "/+Akyoto/animelist/watching/from/3", + }, + "/user/:nick/animelist/completed": []string{ "/+Akyoto/animelist/completed", }, + "/user/:nick/animelist/completed/from/:index": []string{ + "/+Akyoto/animelist/completed/from/3", + }, + "/user/:nick/animelist/planned": []string{ "/+Akyoto/animelist/planned", }, + "/user/:nick/animelist/planned/from/:index": []string{ + "/+Akyoto/animelist/planned/from/3", + }, + "/user/:nick/animelist/hold": []string{ "/+Akyoto/animelist/hold", }, + "/user/:nick/animelist/hold/from/:index": []string{ + "/+Akyoto/animelist/hold/from/3", + }, + "/user/:nick/animelist/dropped": []string{ "/+Akyoto/animelist/dropped", }, + "/user/:nick/animelist/dropped/from/:index": []string{ + "/+Akyoto/animelist/dropped/from/3", + }, + "/user/:nick/recommended/anime": []string{ "/+Akyoto/recommended/anime", }, @@ -139,22 +159,34 @@ var routeTests = map[string][]string{ "/soundtrack/h0ac8sKkg/edit", }, - "/soundtracks": []string{ - "/soundtracks", + "/soundtrack/:id/history": []string{ + "/soundtrack/h0ac8sKkg/history", }, - "/soundtracks/best": []string{ - "/soundtracks/best", + "/soundtracks": []string{ + "/soundtracks", }, "/soundtracks/from/:index": []string{ "/soundtracks/from/12", }, + "/soundtracks/best": []string{ + "/soundtracks/best", + }, + "/soundtracks/best/from/:index": []string{ "/soundtracks/best/from/12", }, + "/soundtracks/tag/:tag": []string{ + "/soundtracks/tag/moe", + }, + + "/soundtracks/tag/:tag/from/:index": []string{ + "/soundtracks/tag/moe/from/3", + }, + "/character/:id": []string{ "/character/6556", },