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" ASSERT__ ARY[1]==5, "DATA"
LOCATE 10, LOCATE 10,
COLOR 1,15 COLOR 1,15
PRINT "テスト正常終了" PRINT "Test has been run successfully."

View File

@@ -32,11 +32,3 @@ int main(string[] argv)
}*/ }*/
return 0; 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; public Random random;
} }
unittest
{
auto petitcomputer = new PetitComputer();
petitcomputer.run(true, "TEST.txt", false, true);
assert(petitcomputer.lastError is null);
}

View File

@@ -48,7 +48,7 @@ after_build:
test_script: test_script:
- cd c:\projects\otyaSMILEBASIC - cd c:\projects\otyaSMILEBASIC
- c:\projects\dub\dub.exe test -- --no-direct-mode --file c:\projects\otyaSMILEBASIC\SMILEBASIC\TEST.TXT --redirect-console - c:\projects\dub\dub.exe test
artifacts: artifacts:
- path: otyasmilebasic.zip - path: otyasmilebasic.zip