1
0
mirror of https://github.com/deavmi/birchwood synced 2024-09-20 11:43:22 +02:00

Unit tests

- Cleaned up
This commit is contained in:
Tristan B. Velloza Kildaire 2023-03-17 09:18:17 +02:00
parent 3c6ee2bbbb
commit 0e9c042d21

View File

@ -300,10 +300,13 @@ public final class Message
private string[] ppPairs;
unittest
version(unittest)
{
import std.stdio;
}
unittest
{
string testInput = "A:=1 A=2 :Hello this is text";
writeln("Input: ", testInput);
@ -323,8 +326,6 @@ public final class Message
unittest
{
import std.stdio;
string testInput = ":Hello this is text";
bool hasTrailer;
string[] splitted = splitting(testInput, hasTrailer);