mirror of
https://github.com/devZoGok/gameBase.git
synced 2026-08-26 19:43:28 +00:00
21 lines
412 B
C++
21 lines
412 B
C++
#include "luaFieldsTest.h"
|
|
#include "luaFields.h"
|
|
|
|
#include <string>
|
|
|
|
namespace gameBase{
|
|
using namespace std;
|
|
|
|
void LuaFieldsTest::setUp(){
|
|
}
|
|
|
|
void LuaFieldsTest::tearDown(){
|
|
}
|
|
|
|
void LuaFieldsTest::testTableToString(){
|
|
string toStringRes = "table = {a = 1, b = 2.2, c = true, d = \"false\", e = {x = 20, y = {}}}";
|
|
LuaTableField table("table");
|
|
CPPUNIT_ASSERT(table.toString() == toStringRes);
|
|
}
|
|
}
|