esvapi: add unittest for verseValid()
This commit is contained in:
parent
cb29cc8e8a
commit
6436166441
1 changed files with 8 additions and 0 deletions
8
esvapi.d
8
esvapi.d
|
@ -170,6 +170,14 @@ verseValid(in char[] verse)
|
||||||
return false;
|
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,
|
+ Structure containing the authentication key, API URL,
|
||||||
+ any parameters to use when making a request as well as the
|
+ any parameters to use when making a request as well as the
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue