Skip to content

Commit

Permalink
Added tests to new functions
Browse files Browse the repository at this point in the history
  • Loading branch information
EtoileFilante committed Mar 23, 2016
1 parent 3f18b7f commit b9db90e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,7 @@ r2 = getRoute(ydl,"news/761546/")
@test r2.controller == "News"
@test r2.variables == ["article_id"]

@test getRouteWithController(ydl,"nothingHere") == ""
@test getRoute(ydl,"arandomurl") == ""
@test isRouteWithController(ydl,"nothingHere") == false
@test isRoute(ydl,"arandomurl") == false

@test getRouteWithController(ydl,"whatever").controller == "Default"

0 comments on commit b9db90e

Please sign in to comment.