util: add unittest for parseBook()
This commit is contained in:
parent
ddab4da4fb
commit
cb29cc8e8a
1 changed files with 6 additions and 0 deletions
6
util.d
6
util.d
|
@ -65,6 +65,12 @@ parseBook(in string book)
|
|||
return book.tr("-_", " ");
|
||||
}
|
||||
|
||||
@safe unittest
|
||||
{
|
||||
assert(parseBook("1-Corinthians") == "1 Corinthians");
|
||||
assert(parseBook("1_Corinthians") == "1 Corinthians");
|
||||
}
|
||||
|
||||
ushort
|
||||
terminalColumns() @trusted
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue