From bdac7361a581e91aae5f6eee21e3b419d8d6a90d Mon Sep 17 00:00:00 2001 From: WebFreak001 Date: Sat, 12 Jan 2019 12:37:06 +0100 Subject: [PATCH] Add test for issue0112 without array item --- tests/allman/issue0112_variation.d.ref | 15 +++++++++++++++ tests/issue0112_variation.d | 18 ++++++++++++++++++ tests/otbs/issue0112_variation.d.ref | 13 +++++++++++++ 3 files changed, 46 insertions(+) create mode 100644 tests/allman/issue0112_variation.d.ref create mode 100644 tests/issue0112_variation.d create mode 100644 tests/otbs/issue0112_variation.d.ref diff --git a/tests/allman/issue0112_variation.d.ref b/tests/allman/issue0112_variation.d.ref new file mode 100644 index 0000000..084e5eb --- /dev/null +++ b/tests/allman/issue0112_variation.d.ref @@ -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(); + } + }); +} diff --git a/tests/issue0112_variation.d b/tests/issue0112_variation.d new file mode 100644 index 0000000..73e3d89 --- /dev/null +++ b/tests/issue0112_variation.d @@ -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(); + } + } + ); +} diff --git a/tests/otbs/issue0112_variation.d.ref b/tests/otbs/issue0112_variation.d.ref new file mode 100644 index 0000000..424c1dd --- /dev/null +++ b/tests/otbs/issue0112_variation.d.ref @@ -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(); + } + }); +}