diff --git a/esvapi.d b/esvapi.d index 3809273..294e1a6 100644 --- a/esvapi.d +++ b/esvapi.d @@ -170,6 +170,14 @@ verseValid(in char[] verse) return false; } +@safe unittest +{ + assert(verseValid("1")); + assert(verseValid("5-7")); + assert(verseValid("15:13")); + assert(verseValid("15:12-17")); +} + /++ + Structure containing the authentication key, API URL, + any parameters to use when making a request as well as the