Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/windirstat/premake-4.x-stable.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/script/tests/script_tests.cpp')
-rw-r--r--src/script/tests/script_tests.cpp104
1 files changed, 52 insertions, 52 deletions
diff --git a/src/script/tests/script_tests.cpp b/src/script/tests/script_tests.cpp
index e175906..9a8d792 100644
--- a/src/script/tests/script_tests.cpp
+++ b/src/script/tests/script_tests.cpp
@@ -1,52 +1,52 @@
-/**
- * \file script_tests.cpp
- * \brief Automated test for the project scripting engine.
- * \author Copyright (c) 2008 Jason Perkins and the Premake project
- */
-
-#include "premake.h"
-#include "testing/testing.h"
-extern "C" {
-#include "script/script.h"
-#include "base/error.h"
-}
-
-
-/**
- * Run the suite of project scripting engine automated tests.
- * \returns OKAY if all tests completed successfully.
- */
-int script_tests()
-{
- int z = OKAY;
- if (z == OKAY) z = tests_run_suite("script");
- if (z == OKAY) z = tests_run_suite("unload");
- return z;
-}
-
-
-struct FxScript
-{
- Script script;
-
- FxScript()
- {
- script = script_create();
- }
-
- ~FxScript()
- {
- script_destroy(script);
- error_clear();
- }
-};
-
-
-SUITE(script)
-{
- TEST_FIXTURE(FxScript, ScriptCreate_ReturnsObject)
- {
- CHECK(script != NULL);
- }
-}
-
+/**
+ * \file script_tests.cpp
+ * \brief Automated test for the project scripting engine.
+ * \author Copyright (c) 2008 Jason Perkins and the Premake project
+ */
+
+#include "premake.h"
+#include "testing/testing.h"
+extern "C" {
+#include "script/script.h"
+#include "base/error.h"
+}
+
+
+/**
+ * Run the suite of project scripting engine automated tests.
+ * \returns OKAY if all tests completed successfully.
+ */
+int script_tests()
+{
+ int z = OKAY;
+ if (z == OKAY) z = tests_run_suite("script");
+ if (z == OKAY) z = tests_run_suite("unload");
+ return z;
+}
+
+
+struct FxScript
+{
+ Script script;
+
+ FxScript()
+ {
+ script = script_create();
+ }
+
+ ~FxScript()
+ {
+ script_destroy(script);
+ error_clear();
+ }
+};
+
+
+SUITE(script)
+{
+ TEST_FIXTURE(FxScript, ScriptCreate_ReturnsObject)
+ {
+ CHECK(script != NULL);
+ }
+}
+