mirror of
https://github.com/devZoGok/gameBase.git
synced 2026-08-27 03:53:31 +00:00
1st failed test
This commit is contained in:
@@ -1,6 +1,11 @@
|
||||
#include "luaFieldsTest.h"
|
||||
#include "luaFields.h"
|
||||
|
||||
#include <string>
|
||||
|
||||
namespace gameBase{
|
||||
using namespace std;
|
||||
|
||||
void LuaFieldsTest::setUp(){
|
||||
}
|
||||
|
||||
@@ -8,5 +13,8 @@ namespace gameBase{
|
||||
}
|
||||
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user