[DEV] remove STL
This commit is contained in:
parent
626c4327e1
commit
830d651907
@ -33,7 +33,7 @@ def configure(target, my_module):
|
|||||||
])
|
])
|
||||||
my_module.add_depend([
|
my_module.add_depend([
|
||||||
'ejson',
|
'ejson',
|
||||||
'gtest',
|
'etest',
|
||||||
'test-debug'
|
'test-debug'
|
||||||
])
|
])
|
||||||
return True
|
return True
|
||||||
|
@ -12,7 +12,7 @@
|
|||||||
#include <etk/archive/Archive.hpp>
|
#include <etk/archive/Archive.hpp>
|
||||||
#include <test-debug/debug.hpp>
|
#include <test-debug/debug.hpp>
|
||||||
#include <ejson/ejson.hpp>
|
#include <ejson/ejson.hpp>
|
||||||
#include <gtest/gtest.h>
|
#include <etest/etest.hpp>
|
||||||
#include <etk/os/FSNode.hpp>
|
#include <etk/os/FSNode.hpp>
|
||||||
|
|
||||||
#include "testDocument.hpp"
|
#include "testDocument.hpp"
|
||||||
@ -22,11 +22,11 @@
|
|||||||
#include "testAll.hpp"
|
#include "testAll.hpp"
|
||||||
|
|
||||||
int main(int argc, const char *argv[]) {
|
int main(int argc, const char *argv[]) {
|
||||||
// init Google test :
|
// init test engine:
|
||||||
::testing::InitGoogleTest(&argc, const_cast<char **>(argv));
|
etest::init(argc, argv);
|
||||||
// init etk log system and file interface:
|
// init etk log system and file interface:
|
||||||
etk::init(argc, argv);
|
etk::init(argc, argv);
|
||||||
// Run all test with gtest
|
// Run all test with etest
|
||||||
return RUN_ALL_TESTS();
|
return RUN_ALL_TESTS();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "testCommon.hpp"
|
#include "testCommon.hpp"
|
||||||
#include <gtest/gtest.h>
|
#include <etest/etest.hpp>
|
||||||
|
|
||||||
TEST(TestAll, testBaseObject) {
|
TEST(TestAll, testBaseObject) {
|
||||||
etk::String base = "{\n"
|
etk::String base = "{\n"
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "testCommon.hpp"
|
#include "testCommon.hpp"
|
||||||
#include <gtest/gtest.h>
|
#include <etest/etest.hpp>
|
||||||
|
|
||||||
|
|
||||||
static etk::String refOutputBoolean1("{\n\t\"tmpElement\": true\n}\n");
|
static etk::String refOutputBoolean1("{\n\t\"tmpElement\": true\n}\n");
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "testCommon.hpp"
|
#include "testCommon.hpp"
|
||||||
#include <gtest/gtest.h>
|
#include <etest/etest.hpp>
|
||||||
|
|
||||||
static etk::String refOutputDocument("{\n}\n");
|
static etk::String refOutputDocument("{\n}\n");
|
||||||
TEST(TestDocument, testEmptyDoc) {
|
TEST(TestDocument, testEmptyDoc) {
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "testCommon.hpp"
|
#include "testCommon.hpp"
|
||||||
#include <gtest/gtest.h>
|
#include <etest/etest.hpp>
|
||||||
|
|
||||||
|
|
||||||
static etk::String refOutputNull("{\n\t\"tmpElement\": null\n}\n");
|
static etk::String refOutputNull("{\n\t\"tmpElement\": null\n}\n");
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "testCommon.hpp"
|
#include "testCommon.hpp"
|
||||||
#include <gtest/gtest.h>
|
#include <etest/etest.hpp>
|
||||||
|
|
||||||
static etk::String refOutputNumber("{\n\t\"tmpElement\": 956256\n}\n");
|
static etk::String refOutputNumber("{\n\t\"tmpElement\": 956256\n}\n");
|
||||||
TEST(TestNumber, testBase) {
|
TEST(TestNumber, testBase) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user