changeset 265:4ddc300e8998

Removal of Luae (tests)
author David Demelier <markand@malikania.fr>
date Tue, 14 Oct 2014 11:40:50 +0200
parents 02aea4deed32
children 41bdde9027c0
files C++/Tests/Luae/CMakeLists.txt C++/Tests/Luae/main-class.cpp C++/Tests/Luae/main.cpp C++/Tests/Luae/scripts/class.lua C++/Tests/Luae/scripts/loading.lua C++/Tests/Luae/scripts/push.lua C++/Tests/Luae/scripts/standard.lua CMakeLists.txt
diffstat 8 files changed, 0 insertions(+), 835 deletions(-) [+]
line wrap: on
line diff
--- a/C++/Tests/Luae/CMakeLists.txt	Tue Oct 14 11:40:40 2014 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,57 +0,0 @@
-#
-# CMakeLists.txt -- tests for Luae classes
-#
-# Copyright (c) 2013, 2014 David Demelier <markand@malikania.fr>
-#
-# Permission to use, copy, modify, and/or distribute this software for any
-# purpose with or without fee is hereby granted, provided that the above
-# copyright notice and this permission notice appear in all copies.
-#
-# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
-# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
-# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
-# ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
-# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
-# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
-# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-#
-
-find_package(Lua52 REQUIRED)
-
-set(
-	LUAE_SOURCES
-	${code_SOURCE_DIR}/C++/Luae.cpp
-	${code_SOURCE_DIR}/C++/Luae.h
-	${code_SOURCE_DIR}/C++/LuaeState.cpp
-	${code_SOURCE_DIR}/C++/LuaeState.h
-	main.cpp
-)
-
-set(
-	LUAE_CLASSES_SOURCES
-	${code_SOURCE_DIR}/C++/Luae.cpp
-	${code_SOURCE_DIR}/C++/Luae.h
-	${code_SOURCE_DIR}/C++/LuaeClass.cpp
-	${code_SOURCE_DIR}/C++/LuaeClass.h
-	${code_SOURCE_DIR}/C++/LuaeState.cpp
-	${code_SOURCE_DIR}/C++/LuaeState.h
-	main-class.cpp
-)
-
-define_test(luae "${LUAE_SOURCES}")
-target_include_directories(luae PRIVATE ${LUA52_INCLUDE_DIR})
-target_link_libraries(luae ${LUA52_LIBRARIES})
-
-define_test(luae-class "${LUAE_CLASSES_SOURCES}")
-target_include_directories(luae-class PRIVATE ${LUA52_INCLUDE_DIR})
-target_link_libraries(luae-class ${LUA52_LIBRARIES})
-
-foreach (target luae luae-class)
-	add_custom_command(
-		TARGET ${target}
-		POST_BUILD
-		COMMENT "Copying Lua example files"
-		COMMAND
-			${CMAKE_COMMAND} -E copy_directory ${CMAKE_CURRENT_SOURCE_DIR}/scripts $<TARGET_FILE_DIR:${target}>
-	)
-endforeach ()
--- a/C++/Tests/Luae/main-class.cpp	Tue Oct 14 11:40:40 2014 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,179 +0,0 @@
-/*
- * main-class.cpp -- test the LuaeClass class
- *
- * Copyright (c) 2013, 2014 David Demelier <markand@malikania.fr>
- *
- * Permission to use, copy, modify, and/or distribute this software for any
- * purpose with or without fee is hereby granted, provided that the above
- * copyright notice and this permission notice appear in all copies.
- *
- * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
- * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
- * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
- * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
- * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
- * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
- * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
- */
-
-#include <gtest/gtest.h>
-
-#include <Luae.h>
-#include <LuaeClass.h>
-#include <LuaeState.h>
-
-/* ---------------------------------------------------------
- * Fake class for TestLuaeClass::create()
- * --------------------------------------------------------- */
-
-class Object {};
-
-template <>
-struct Luae::TypeInfo<Object> : public Luae::TypeUserdata {
-	static constexpr const char *name = "Object";
-};
-
-/* ---------------------------------------------------------
- * Fake classes for TestLuaeClass::testInheritance()
- * --------------------------------------------------------- */
-
-class Base {};
-class Child {};
-
-template <>
-struct Luae::TypeInfo<Base> : public Luae::TypeUserdata {
-	static constexpr const char *name = "Base";
-};
-
-template <>
-struct Luae::TypeInfo<Child> : public Luae::TypeUserdata {
-	static constexpr const char *name = "Child";
-};
-
-TEST(Basic, create)
-{
-	LuaeState L;
-	Luae::openlibs(L);
-
-	LuaeClass::Def cls("Test", {}, {});
-	LuaeClass::create(L, cls);
-
-	Luae::getfield(L, LUA_REGISTRYINDEX, Luae::FieldClasses);
-	ASSERT_TRUE(Luae::type(L, -1) == LUA_TTABLE);
-
-	Luae::getfield(L, -1, "Test");
-	ASSERT_TRUE(Luae::type(L, -1) == LUA_TTABLE);
-}
-
-TEST(Basic, createInheritance)
-{
-	LuaeState L;
-	Luae::openlibs(L);
-
-	LuaeClass::Def ac("A", {}, {});
-	LuaeClass::Def bc("B", {}, {}, ac);
-	LuaeClass::create(L, ac);
-	LuaeClass::create(L, bc);
-
-	Luae::getfield(L, LUA_REGISTRYINDEX, Luae::FieldClasses);
-	ASSERT_TRUE(Luae::type(L, -1) == LUA_TTABLE);
-
-	Luae::getfield(L, -1, "A");
-	ASSERT_TRUE(Luae::type(L, -1) == LUA_TTABLE);
-
-	Luae::getfield(L, -2, "B");
-	ASSERT_TRUE(Luae::type(L, -1) == LUA_TTABLE);
-
-	// Check for parent from B -> A
-	Luae::getfield(L, -1, "A");
-	ASSERT_TRUE(Luae::type(L, -1) == LUA_TBOOLEAN);
-}
-
-TEST(Basic, testClass)
-{
-	auto name = [] (lua_State *L) -> int {
-		return Luae::push(L, "object");
-	};
-	auto validate = [] (lua_State *L) -> int {
-		return Luae::push(L, true);
-	};
-
-	LuaeClass::Methods methods {
-		{ "name",	name		},
-		{ "validate",	validate	}
-	};
-
-	LuaeClass::Def object(Luae::TypeInfo<Object>::name, methods, {});
-
-	LuaeState L;
-	Luae::openlibs(L);
-
-	try {
-		LuaeClass::create(L, object);
-		Luae::dofile(L, "class.lua");
-		Luae::getglobal(L, "testObject");
-		Luae::push(L, Object());
-		Luae::pcall(L, 1, 1);
-		ASSERT_TRUE(Luae::check<bool>(L, -1));
-	} catch (const std::runtime_error &error) {
-		FAIL() << "unexpected exception: "<< error.what();
-	}
-}
-
-TEST(Basic, testInheritance)
-{
-	auto base = [] (lua_State *L) -> int {
-		Luae::check<Base>(L, 1);
-
-		return Luae::push(L, "base");
-	};
-	auto child = [] (lua_State *L) -> int {
-		Luae::check<Child>(L, 1);
-
-		return Luae::push(L, "child");
-	};
-
-	// Create base class
-	LuaeClass::Methods baseMethods = {
-		{ "base",	base	}
-	};
-	LuaeClass::Def baseDef(Luae::TypeInfo<Base>::name, baseMethods, {});
-
-	// Create child class
-	LuaeClass::Methods childMethods = {
-		{ "child",	child	}
-	};
-	LuaeClass::Def childDef(Luae::TypeInfo<Child>::name, childMethods, {}, baseDef);
-
-	LuaeState L;
-	Luae::openlibs(L);
-	LuaeClass::create(L, baseDef);
-	LuaeClass::create(L, childDef);
-
-	try {
-		Luae::dofile(L, "class.lua");
-		Luae::getglobal(L, "testInheritance");
-		Luae::push(L, Child());
-		Luae::pcall(L, 1, 0);
-	} catch (const std::runtime_error &error) {
-		FAIL() << "unexpected exception: " << error.what();
-	}
-
-	// Do bad inheritance
-	try {
-		Luae::dofile(L, "class.lua");
-		Luae::getglobal(L, "badInheritance");
-		Luae::push(L, Base());
-		Luae::push(L, Child());
-		Luae::pcall(L, 2, 0);
-
-		FAIL() << "expected exception";
-	} catch (const std::runtime_error &) { }
-}
-
-int main(int argc, char **argv)
-{
-	testing::InitGoogleTest(&argc, argv);
-
-	return RUN_ALL_TESTS();
-}
--- a/C++/Tests/Luae/main.cpp	Tue Oct 14 11:40:40 2014 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,488 +0,0 @@
-/*
- * main.cpp -- test the Luae class
- *
- * Copyright (c) 2013, 2014 David Demelier <markand@malikania.fr>
- *
- * Permission to use, copy, modify, and/or distribute this software for any
- * purpose with or without fee is hereby granted, provided that the above
- * copyright notice and this permission notice appear in all copies.
- *
- * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
- * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
- * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
- * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
- * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
- * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
- * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
- */
-
-#include <gtest/gtest.h>
-
-#include <Luae.h>
-#include <LuaeState.h>
-
-/* --------------------------------------------------------
- * Custom type Point
- * -------------------------------------------------------- */
-
-struct Point {
-	int x;
-	int y;
-};
-
-template <>
-struct Luae::TypeInfo<Point> : Luae::TypeCustom {
-	static void push(lua_State *L, const Point &point)
-	{
-		lua_createtable(L, 0, 0);
-		lua_pushinteger(L, point.x);
-		lua_setfield(L, -2, "x");
-		lua_pushinteger(L, point.y);
-		lua_setfield(L, -2, "y");
-	}
-
-	static Point get(lua_State *L, int index)
-	{
-		Point p{0, 0};
-
-		if (lua_type(L, index) == LUA_TTABLE) {
-			lua_getfield(L, index, "x");
-			p.x = luaL_optint(L, -1, 0);
-			lua_pop(L, 1);
-			lua_getfield(L, index, "y");
-			p.y = luaL_optint(L, -1, 0);
-			lua_pop(L, 1);
-		}
-
-		return p;
-	}
-
-	static Point check(lua_State *L, int index)
-	{
-		luaL_checktype(L, index, LUA_TTABLE);
-
-		return get(L, index);
-	}
-};
-
-/* --------------------------------------------------------
- * Userdata type Object
- * -------------------------------------------------------- */
-
-struct Object {
-	std::string hello()
-	{
-		return "hello";
-	}
-};
-
-template <>
-struct Luae::TypeInfo<Object> : Luae::TypeUserdata {
-	static constexpr const char *name = "Object";
-};
-
-int l_hello(lua_State *L)
-{
-	return Luae::push(L, Luae::check<Object>(L, 1)->hello());
-}
-
-const Luae::Reg methods {
-	{ "hello",	l_hello		}
-};
-
-/* --------------------------------------------------------
- * Userdata as shared_ptr Widget
- * -------------------------------------------------------- */
-
-class Widget {
-private:
-	int		m_width;
-	int		m_height;
-	std::string	m_name;
-
-public:
-	Widget(int width, int height, const std::string &name)
-		: m_width(width)
-		, m_height(height)
-		, m_name(name)
-	{
-	}
-
-	int width() const
-	{
-		return m_width;
-	}
-
-	int height() const
-	{
-		return m_height;
-	}
-
-	const std::string &name() const
-	{
-		return m_name;
-	}
-};
-
-using WidgetPtr	= std::shared_ptr<Widget>;
-
-template <>
-struct Luae::TypeInfo<Widget> : Luae::TypeUserdata {
-	static constexpr const char *name = "Widget";
-};
-
-int l_width(lua_State *L)
-{
-	return Luae::push(L, Luae::check<WidgetPtr>(L, 1)->width());
-}
-
-int l_height(lua_State *L)
-{
-	return Luae::push(L, Luae::check<WidgetPtr>(L, 1)->height());
-}
-
-int l_name(lua_State *L)
-{
-	return Luae::push(L, Luae::check<WidgetPtr>(L, 1)->name());
-}
-
-const Luae::Reg widgetMethods {
-	{ "width",		l_width		},
-	{ "height",		l_height	},
-	{ "name",		l_name		}
-};
-
-/* --------------------------------------------------------
- * Push function tests
- * -------------------------------------------------------- */
-
-TEST(Push, point)
-{
-	LuaeState L;
-	Luae::openlibs(L);
-
-	try {
-		Luae::dofile(L, "push.lua");
-		Luae::getglobal(L, "pushPoint");
-		Luae::push(L, Point{10, 20});
-		Luae::pcall(L, 1, 0);
-	} catch (const std::runtime_error &error) {
-		FAIL() << "unexpected exception: " << error.what();
-	}
-}
-
-TEST(Push, object)
-{
-	LuaeState L;
-	Luae::openlibs(L);
-
-	// Object metatable
-	Luae::newmetatable(L, "Object");
-	Luae::newlib(L, methods);
-	Luae::setfield(L, -2, "__index");
-	Luae::pop(L);
-
-	try {
-		Luae::dofile(L, "push.lua");
-		Luae::getglobal(L, "pushObject");
-		Luae::push(L, Object());
-		Luae::pcall(L, 1, 0);
-	} catch (const std::runtime_error &error) {
-		FAIL() << "unexpected exception: " << error.what();
-	}
-}
-
-TEST(Push, shared)
-{
-	LuaeState L;
-	Luae::openlibs(L);
-
-	// Widget metatable
-	Luae::newmetatable(L, "Widget");
-	Luae::newlib(L, widgetMethods);
-	Luae::setfield(L, -2, "__index");
-	Luae::pop(L);
-
-	try {
-		Luae::dofile(L, "push.lua");
-		Luae::getglobal(L, "pushShared");
-		Luae::push(L, std::make_shared<Widget>(100, 200, "Button"));
-		Luae::pcall(L, 1, 0);
-	} catch (const std::runtime_error &error) {
-		FAIL() << "unexpected exception: " << error.what();
-	}
-}
-
-TEST(Push, sharedTwice)
-{
-	LuaeState L;
-	Luae::openlibs(L);
-
-	// Widget metatable
-	Luae::newmetatable(L, "Widget");
-	Luae::newlib(L, widgetMethods);
-	Luae::setfield(L, -2, "__index");
-	Luae::pop(L);
-
-	try {
-		auto widget = std::make_shared<Widget>(640, 480, "Screen");
-
-		Luae::dofile(L, "push.lua");
-		Luae::getglobal(L, "pushSharedTwice");
-		Luae::push(L, widget);
-		Luae::push(L, widget);
-		Luae::pcall(L, 2, 0);
-	} catch (const std::runtime_error &error) {
-		FAIL() << "unexpected exception: " << error.what();
-	}
-}
-
-/* --------------------------------------------------------
- * Other functions
- * -------------------------------------------------------- */
-
-TEST(Basic, preload)
-{
-	LuaeState L;
-	Luae::openlibs(L);
-
-	Luae::preload(L, "luae", [] (lua_State *L) -> int {
-		lua_createtable(L, 0, 0);
-		lua_pushstring(L, "1.0");
-		lua_setfield(L, -2, "version");
-		lua_pushstring(L, "Luae");
-		lua_setfield(L, -2, "name");
-
-		return 1;
-	});
-
-	try {
-		Luae::dofile(L, "loading.lua");
-		Luae::getglobal(L, "test");
-	} catch (const std::runtime_error &error) {
-		FAIL() << "unexpected exception: " << error.what();
-	}
-}
-
-TEST(Basic, require)
-{
-	LuaeState L;
-	Luae::openlibs(L);
-
-	Luae::require(L, "luae", [] (lua_State *L) -> int {
-		lua_createtable(L, 0, 0);
-		lua_pushstring(L, "1.0");
-		lua_setfield(L, -2, "version");
-		lua_pushstring(L, "Luae");
-		lua_setfield(L, -2, "name");
-
-		return 1;
-	});
-
-	try {
-		Luae::dofile(L, "loading.lua");
-		Luae::getglobal(L, "test");
-	} catch (const std::runtime_error &error) {
-		FAIL() << "unexpected exception: "  << error.what();
-	}
-}
-
-/* --------------------------------------------------------
- * Standard types push / get / check
- * -------------------------------------------------------- */
-
-TEST(Standard, testbool)
-{
-	LuaeState L;
-	Luae::openlibs(L);
-
-	try {
-		Luae::dofile(L, "standard.lua");
-		Luae::getglobal(L, "testbool");
-		Luae::push(L, true);
-		Luae::pcall(L, 1, 1);
-		ASSERT_FALSE(Luae::check<bool>(L, 1));
-	} catch (const std::runtime_error &error) {
-		FAIL() << "unexpected exception: " << error.what();
-	}
-}
-
-TEST(Standard, testdouble)
-{
-	LuaeState L;
-	Luae::openlibs(L);
-
-	try {
-		Luae::dofile(L, "standard.lua");
-		Luae::getglobal(L, "testdouble");
-		Luae::push(L, 10.0);
-		Luae::pcall(L, 1, 1);
-		ASSERT_EQ(-10.0, Luae::check<double>(L, 1));
-	} catch (const std::runtime_error &error) {
-		FAIL() << "unexpected exception: " << error.what();
-	}
-}
-
-TEST(Standard, testint)
-{
-	LuaeState L;
-	Luae::openlibs(L);
-
-	try {
-		Luae::dofile(L, "standard.lua");
-		Luae::getglobal(L, "testint");
-		Luae::push(L, 123);
-		Luae::pcall(L, 1, 1);
-		ASSERT_EQ(-123, Luae::check<int>(L, 1));
-	} catch (const std::runtime_error &error) {
-		FAIL() << "unexpected exception: " << error.what();
-	}
-}
-
-TEST(Standard, testlong)
-{
-	LuaeState L;
-	Luae::openlibs(L);
-
-	try {
-		Luae::dofile(L, "standard.lua");
-		Luae::getglobal(L, "testlong");
-		Luae::push(L, 9999L);
-		Luae::pcall(L, 1, 1);
-		ASSERT_EQ(-9999L, Luae::check<long>(L, 1));
-	} catch (const std::runtime_error &error) {
-		FAIL() << "unexpected exception: " << error.what();
-	}
-}
-
-TEST(Standard, testnil)
-{
-	LuaeState L;
-	Luae::openlibs(L);
-
-	try {
-		Luae::dofile(L, "standard.lua");
-		Luae::getglobal(L, "testnil");
-		Luae::push(L, nullptr);
-		Luae::pcall(L, 1, 1);
-		ASSERT_EQ(LUA_TNIL, Luae::type(L, -1));
-	} catch (const std::runtime_error &error) {
-		FAIL() << "unexpected exception: " << error.what();
-	}
-}
-
-TEST(Standard, teststring)
-{
-	LuaeState L;
-	Luae::openlibs(L);
-
-	try {
-		Luae::dofile(L, "standard.lua");
-		Luae::getglobal(L, "teststring");
-		Luae::push(L, "Hello");
-		Luae::pcall(L, 1, 1);
-		ASSERT_EQ("olleH", Luae::check<std::string>(L, 1));
-	} catch (const std::runtime_error &error) {
-		FAIL() << "unexpected exception: " << error.what();
-	}
-}
-
-TEST(Standard, testustring)
-{
-	LuaeState L;
-	Luae::openlibs(L);
-
-	try {
-		std::u32string arg{'H', 'e', 'l', 'l', 'o'};
-		std::u32string expected{'o', 'l', 'l', 'e', 'H'};
-
-		Luae::dofile(L, "standard.lua");
-		Luae::getglobal(L, "testustring");
-		Luae::push(L, arg);
-		Luae::pcall(L, 1, 1);
-		ASSERT_EQ(expected, Luae::check<std::u32string>(L, 1));
-	} catch (const std::runtime_error &error) {
-		FAIL() << "unexpected exception: " << error.what();
-	}
-}
-
-TEST(Standard, optionalbool)
-{
-	LuaeState L;
-	Luae::openlibs(L);
-
-	Luae::push(L, nullptr);
-	ASSERT_FALSE(Luae::optional<bool>(L, -1, false));
-
-	Luae::push(L, true);
-	ASSERT_TRUE(Luae::optional<bool>(L, -1, false));
-}
-
-TEST(Standard, optionalint)
-{
-	LuaeState L;
-	Luae::openlibs(L);
-
-	Luae::push(L, nullptr);
-	ASSERT_EQ(123, Luae::optional<int>(L, -1, 123));
-
-	Luae::push(L, 456);
-	ASSERT_EQ(456, Luae::optional<int>(L, -1, 999));
-}
-
-TEST(Standard, optionallong)
-{
-	LuaeState L;
-	Luae::openlibs(L);
-
-	Luae::push(L, nullptr);
-	ASSERT_EQ(123456789, Luae::optional<long>(L, -1, 123456789));
-
-	Luae::push(L, 789);
-	ASSERT_EQ(789, Luae::optional<long>(L, -1, 888));
-}
-
-TEST(Standard, optionaldouble)
-{
-	LuaeState L;
-	Luae::openlibs(L);
-
-	Luae::push(L, nullptr);
-	ASSERT_EQ(123.321, Luae::optional<double>(L, -1, 123.321));
-
-	Luae::push(L, 99.44);
-	ASSERT_EQ(99.44, Luae::optional<double>(L, -1, 321.321));
-}
-
-TEST(Standard, optionalstring)
-{
-	LuaeState L;
-	Luae::openlibs(L);
-
-	Luae::push(L, nullptr);
-	ASSERT_EQ("abc", Luae::optional<std::string>(L, -1, "abc"));
-
-	Luae::push(L, "xyz");
-	ASSERT_EQ("xyz", Luae::optional<std::string>(L, -1, "qwerty"));
-}
-
-TEST(Standard, optionalustring)
-{
-	LuaeState L;
-	Luae::openlibs(L);
-
-	std::u32string expected { 'a', 'b', 'c' };
-	Luae::push(L, nullptr);
-	ASSERT_EQ(expected, Luae::optional<std::u32string>(L, -1, expected));
-
-	std::u32string notthatone { 'x', 'y' };
-	Luae::push(L, expected);
-	ASSERT_EQ(expected, Luae::optional<std::u32string>(L, -1, notthatone));
-}
-
-int main(int argc, char **argv)
-{
-	testing::InitGoogleTest(&argc, argv);
-
-	return RUN_ALL_TESTS();
-}
--- a/C++/Tests/Luae/scripts/class.lua	Tue Oct 14 11:40:40 2014 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,19 +0,0 @@
---
--- Test class
---
-
-function testObject(o)
-	assert(o:name() == "object", "expected o:name() == object")
-
-	return o:validate()
-end
-
-function testInheritance(o)
-	assert(o:base() == "base", "expected o:base() == base")
-	assert(o:child() == "child", "expected o:child() == child")
-end
-
-function badInheritance(base, child)
-	-- We try to call child method on base
-	child.child(base)
-end
\ No newline at end of file
--- a/C++/Tests/Luae/scripts/loading.lua	Tue Oct 14 11:40:40 2014 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,10 +0,0 @@
---
--- loading.lua -- preload and require functions
---
-
-function test()
-	local luae = require "luae"
-
-	assert(luae.version == "1.0")
-	assert(luae.name == "Luae")
-end
\ No newline at end of file
--- a/C++/Tests/Luae/scripts/push.lua	Tue Oct 14 11:40:40 2014 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,22 +0,0 @@
---
--- push.lua -- test for push functions
---
-
-function pushPoint(point)
-	assert(point.x == 10)
-	assert(point.y == 20)
-end
-
-function pushObject(object)
-	assert(object:hello() == "hello")
-end
-
-function pushShared(widget)
-	assert(widget:width() == 100)
-	assert(widget:height() == 200)
-	assert(widget:name() == "Button")
-end
-
-function pushSharedTwice(o1, o2)
-	assert(o1 == o2)
-end
--- a/C++/Tests/Luae/scripts/standard.lua	Tue Oct 14 11:40:40 2014 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,55 +0,0 @@
---
--- standard.lua -- standard types push / get / check
---
-
-function testbool(v)
-	assert(v == true)
-
-	return false
-end
-
-function testdouble(v)
-	assert(v == 10.0)
-
-	return -10.0
-end
-
-function testint(v)
-	assert(v == 123)
-
-	return -123
-end
-
-function testlong(v)
-	assert(v == 9999)
-
-	return -9999
-end
-
-function testnil(v)
-	assert(type(v) == "nil")
-
-	return nil
-end
-
-function teststring(v)
-	assert(v == "Hello")
-
-	return "olleH"
-end
-
-function testustring(v)
-	assert(v[1] == string.byte('H'))
-	assert(v[2] == string.byte('e'))
-	assert(v[3] == string.byte('l'))
-	assert(v[4] == string.byte('l'))
-	assert(v[5] == string.byte('o'))
-
-	return {
-		string.byte('o'),
-		string.byte('l'),
-		string.byte('l'),
-		string.byte('e'),
-		string.byte('H')
-	}
-end
\ No newline at end of file
--- a/CMakeLists.txt	Tue Oct 14 11:40:40 2014 +0200
+++ b/CMakeLists.txt	Tue Oct 14 11:40:50 2014 +0200
@@ -52,7 +52,6 @@
 option(WITH_DYNLIB "Enable DynLib tests" On)
 option(WITH_FLAGS "Enable Flags tests" On)
 option(WITH_HASH "Enable hash functions tests" On)
-option(WITH_LUAE "Enable Luae tests" On)
 option(WITH_OPTIONPARSER "Enable option parser tests" On)
 option(WITH_PACK "Enable pack functions" On)
 option(WITH_PARSER "Enable parser tests" On)
@@ -85,10 +84,6 @@
 	add_subdirectory(C++/Tests/Hash)
 endif ()
 
-if (WITH_LUAE)
-	add_subdirectory(C++/Tests/Luae)
-endif ()
-
 if (WITH_OPTIONPARSER)
 	add_subdirectory(C++/Tests/OptionParser)
 endif ()