Go to the SVN repository for this file.
43 df.String(0).set(0,
"1");
44 df.Uint(1).set(0, 1);
51df1.Uint(1).set(0, 1);
53BOOST_CHECK(
df.Equal(df1) ==
false);
59df1.Uint(1).set(0, 2);
61BOOST_CHECK(
df.Equal(df1) ==
false);
68df1.Uint(1).set(0, 1);
70BOOST_CHECK(
df.Equal(df1) ==
false);
76df1.Uint(1).set(0, 1);
78BOOST_CHECK(
df.Equal(df1));
86 autostr_it =
df.String(0).get_back_inserter();
87str_it.add(
"1"); str_it.add(
"2"); str_it.add(
"3"); str_it.flush();
90 autouint_it =
df.Uint(1).get_back_inserter();
91uint_it.add(1); uint_it.add(2); uint_it.add(3); uint_it.flush();
99ncbi::CTmpFile tmpfile;
102ofstream
out(tmpfile.GetFileName().c_str());
103 df.Serialize(
out);
106ifstream
t(tmpfile.GetFileName().c_str());
107 string data((istreambuf_iterator<char>(
t)), istreambuf_iterator<char>());
109BOOST_TEST_CHECKPOINT(
"Deserialize from start");
112BOOST_CHECK(
df.Equal(df1));
bool Deserialize(const char *data, size_t data_size)
Deserialization from string starting from pos returns true on success.
TStrType & String(size_t idx) noexcept
void set(size_type idx, const value_type *str)
set specified element with bounds checking and automatic resize
BOOST_AUTO_TEST_CASE(Test_Comparison)
BOOST_AUTO_TEST_SUITE_END()
Auxiliary class to convert a string into an argument count and vector.
std::ofstream out("events_result.xml")
main entry point for tests
Defines classes: CDirEntry, CFile, CDir, CSymLink, CMemoryFile, CFileUtil, CFileLock,...
double df(double x_, const double &y_)
BOOST_AUTO_TEST_SUITE(psiblast_iteration)
Utility stuff for more convenient using of Boost.Test library.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4