2016-04-13 23:39:22 +02:00
|
|
|
/** @file
|
|
|
|
* @author Edouard DUPIN
|
|
|
|
* @copyright 2014, Edouard DUPIN, all right reserved
|
|
|
|
* @license APACHE v2.0 (see license file)
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <gtest/gtest.h>
|
|
|
|
#include <exml/exml.h>
|
|
|
|
#include <exml/Declaration.h>
|
|
|
|
|
|
|
|
TEST(TestDeclarationXML, create) {
|
|
|
|
exml::DeclarationXML myDeclarationXML("1.0", "UTF-8", true);
|
2016-04-18 21:46:42 +02:00
|
|
|
EXPECT_EQ(myDeclarationXML.getType(), exml::nodeType::declaration);
|
2016-04-13 23:39:22 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
TEST(TestDeclarationXML, createCopy) {
|
|
|
|
exml::DeclarationXML myDeclarationXML("1.0", "UTF-8", true);
|
|
|
|
exml::DeclarationXML myOtherDeclarationXML(myDeclarationXML);
|
|
|
|
//EXPECT_EQ(myDeclarationXML, myOtherDeclarationXML);
|
|
|
|
}
|
|
|
|
|
|
|
|
TEST(TestDeclarationXML, createAssignement) {
|
|
|
|
exml::DeclarationXML myDeclarationXML("1.0", "UTF-8", true);
|
2016-04-15 21:43:08 +02:00
|
|
|
exml::DeclarationXML myOtherDeclarationXML;
|
|
|
|
myOtherDeclarationXML = myDeclarationXML;
|
2016-04-13 23:39:22 +02:00
|
|
|
//EXPECT_EQ(myDeclarationXML, myOtherDeclarationXML);
|
|
|
|
}
|
|
|
|
|