1
0
mirror of https://github.com/deavmi/birchwood synced 2024-09-20 14:03:05 +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; private string[] ppPairs;
unittest version(unittest)
{ {
import std.stdio; import std.stdio;
}
unittest
{
string testInput = "A:=1 A=2 :Hello this is text"; string testInput = "A:=1 A=2 :Hello this is text";
writeln("Input: ", testInput); writeln("Input: ", testInput);
@ -323,8 +326,6 @@ public final class Message
unittest unittest
{ {
import std.stdio;
string testInput = ":Hello this is text"; string testInput = ":Hello this is text";
bool hasTrailer; bool hasTrailer;
string[] splitted = splitting(testInput, hasTrailer); string[] splitted = splitting(testInput, hasTrailer);