validate_zero_buf_test.cpp
Go to the documentation of this file.
2 #include <gtest/gtest.h>
3 
4 
5 TEST(ioValidateZeroBuf, tester) {
8 
9  s = "0.0";
10  EXPECT_NO_THROW(validate_zero_buf(s));
11 
12  s = "0.00000000000";
13  EXPECT_NO_THROW(validate_zero_buf(s));
14 
15  s = "0.0e52";
16  EXPECT_NO_THROW(validate_zero_buf(s));
17 
18  s = "1.0";
19  EXPECT_THROW(validate_zero_buf(s), boost::bad_lexical_cast);
20 
21  s = "1e1";
22  EXPECT_THROW(validate_zero_buf(s), boost::bad_lexical_cast);
23 }
24 
TEST(ioValidateZeroBuf, tester)
const XML_Char * s
Definition: expat.h:262
void validate_zero_buf(const B &buf)
::xsd::cxx::tree::string< char, simple_type > string
Definition: Database.h:154