Add test for issue0112 without array item
This commit is contained in:
parent
7f41c8ae7f
commit
bdac7361a5
|
@ -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();
|
||||
}
|
||||
});
|
||||
}
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
);
|
||||
}
|
|
@ -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();
|
||||
}
|
||||
});
|
||||
}
|
Loading…
Reference in New Issue