Add test for issue0112 without array item

This commit is contained in:
WebFreak001 2019-01-12 12:37:06 +01:00
parent 7f41c8ae7f
commit bdac7361a5
3 changed files with 46 additions and 0 deletions

View File

@ -0,0 +1,15 @@
unittest
{
testScene = new Scene(longArgument, longArgument, longArgument,
longArgument, longArgument, longArgument, delegate(Scene scene) {
import std.stdio;
if (!scene.alreadyEntered)
{
fwriteln(
"This is a test. This is a test. This is a test. This is a test. This is a test. Test12.");
auto p = cast(Portal) sceneManager.previousScene;
scene.destroyCurrentScript();
}
});
}

View File

@ -0,0 +1,18 @@
unittest
{
testScene = new Scene
(
longArgument, longArgument, longArgument, longArgument, longArgument, longArgument,
delegate(Scene scene)
{
import std.stdio;
if (!scene.alreadyEntered)
{
fwriteln("This is a test. This is a test. This is a test. This is a test. This is a test. Test12.");
auto p = cast(Portal)sceneManager.previousScene;
scene.destroyCurrentScript();
}
}
);
}

View File

@ -0,0 +1,13 @@
unittest {
testScene = new Scene(longArgument, longArgument, longArgument,
longArgument, longArgument, longArgument, delegate(Scene scene) {
import std.stdio;
if (!scene.alreadyEntered) {
fwriteln(
"This is a test. This is a test. This is a test. This is a test. This is a test. Test12.");
auto p = cast(Portal) sceneManager.previousScene;
scene.destroyCurrentScript();
}
});
}