mirror of
https://github.com/deavmi/birchwood
synced 2024-09-20 13:43:19 +02:00
Messages
- Added unit test for `hasIllegalCharacters(string)`
This commit is contained in:
parent
80a6baf0f9
commit
229a137e34
@ -608,4 +608,17 @@ public final class Message
|
|||||||
{
|
{
|
||||||
return replyType;
|
return replyType;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
version(unittest)
|
||||||
|
{
|
||||||
|
// Contains illegal characters
|
||||||
|
string badString1 = "doos"~"bruh"~"lek"~cast(string)[10]~"ker";
|
||||||
|
string badString2 = "doos"~"bruh"~"lek"~cast(string)[13]~"ker";
|
||||||
|
}
|
||||||
|
|
||||||
|
unittest
|
||||||
|
{
|
||||||
|
assert(Message.hasIllegalCharacters(badString1) == true);
|
||||||
|
assert(Message.hasIllegalCharacters(badString2) == true);
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user