aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/xml/document/xml-options_ut.cpp
diff options
context:
space:
mode:
authorArslan Urtashev <urtashev@gmail.com>2022-02-10 16:48:55 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:48:55 +0300
commit1136f2ce7cce7bcc84e695272c0d92d4eb900c2b (patch)
tree5d5cb817648f650d76cf1076100726fd9b8448e8 /library/cpp/xml/document/xml-options_ut.cpp
parentb97740540e7302cec9efa181e106ae1990a0cc1c (diff)
downloadydb-1136f2ce7cce7bcc84e695272c0d92d4eb900c2b.tar.gz
Restoring authorship annotation for Arslan Urtashev <urtashev@gmail.com>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/xml/document/xml-options_ut.cpp')
-rw-r--r--library/cpp/xml/document/xml-options_ut.cpp42
1 files changed, 21 insertions, 21 deletions
diff --git a/library/cpp/xml/document/xml-options_ut.cpp b/library/cpp/xml/document/xml-options_ut.cpp
index 99a5d877a8..9be16baf3d 100644
--- a/library/cpp/xml/document/xml-options_ut.cpp
+++ b/library/cpp/xml/document/xml-options_ut.cpp
@@ -1,26 +1,26 @@
-#include "xml-options.h"
-
+#include "xml-options.h"
+
#include <library/cpp/testing/unittest/registar.h>
-
+
Y_UNIT_TEST_SUITE(TestXmlOptions) {
Y_UNIT_TEST(SetHuge) {
- NXml::TOptions opts;
- opts.Set(NXml::EOption::Huge);
- UNIT_ASSERT_EQUAL(XML_PARSE_HUGE, opts.GetMask());
- }
-
+ NXml::TOptions opts;
+ opts.Set(NXml::EOption::Huge);
+ UNIT_ASSERT_EQUAL(XML_PARSE_HUGE, opts.GetMask());
+ }
+
Y_UNIT_TEST(VariadicContructor) {
- NXml::TOptions opts(NXml::EOption::Huge, NXml::EOption::Compact, NXml::EOption::SAX1);
- UNIT_ASSERT_EQUAL(XML_PARSE_HUGE | XML_PARSE_COMPACT | XML_PARSE_SAX1, opts.GetMask());
- }
-
+ NXml::TOptions opts(NXml::EOption::Huge, NXml::EOption::Compact, NXml::EOption::SAX1);
+ UNIT_ASSERT_EQUAL(XML_PARSE_HUGE | XML_PARSE_COMPACT | XML_PARSE_SAX1, opts.GetMask());
+ }
+
Y_UNIT_TEST(Chaining) {
- NXml::TOptions opts;
-
- opts
- .Set(NXml::EOption::Huge)
- .Set(NXml::EOption::Compact);
-
- UNIT_ASSERT_EQUAL(XML_PARSE_HUGE | XML_PARSE_COMPACT, opts.GetMask());
- }
-}
+ NXml::TOptions opts;
+
+ opts
+ .Set(NXml::EOption::Huge)
+ .Set(NXml::EOption::Compact);
+
+ UNIT_ASSERT_EQUAL(XML_PARSE_HUGE | XML_PARSE_COMPACT, opts.GetMask());
+ }
+}