Fix unittest
This commit is contained in:
@@ -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."
|
||||||
|
|||||||
@@ -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);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|||||||
@@ -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);
|
||||||
|
}
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user