1
0

Fix unittest

This commit is contained in:
otya128
2017-07-08 18:55:50 +09:00
parent 390c47e3d6
commit f50bed31b8
4 changed files with 9 additions and 10 deletions

View File

@@ -336,4 +336,4 @@ ASSERT__ _4==4, "DATA"
ASSERT__ ARY[1]==5, "DATA"
LOCATE 10,
COLOR 1,15
PRINT "テスト正常終了"
PRINT "Test has been run successfully."

View File

@@ -32,11 +32,3 @@ int main(string[] argv)
}*/
return 0;
}
unittest
{
auto petitcomputer = new PetitComputer();
petitcomputer.run(true, "TEST.txt", false, true);
assert(petitcomputer.lastError is null);
}

View File

@@ -1853,3 +1853,10 @@ class PetitComputer
}
public Random random;
}
unittest
{
auto petitcomputer = new PetitComputer();
petitcomputer.run(true, "TEST.txt", false, true);
assert(petitcomputer.lastError is null);
}