A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://www.ncbi.nlm.nih.gov/IEB/ToolBox/CPP_DOC/doxyhtml/data__frame__unit__test_8cpp_source.html below:

NCBI C++ ToolKit: src/gui/utils/unit_test/data_frame_unit_test.cpp Source File

Go to the documentation of this file.

Go to the SVN repository for this file.

43  df

.String(0).set(0,

"1"

);

44  df

.Uint(1).set(0, 1);

51

df1.Uint(1).set(0, 1);

53

BOOST_CHECK(

df

.Equal(df1) ==

false

);

59

df1.Uint(1).set(0, 2);

61

BOOST_CHECK(

df

.Equal(df1) ==

false

);

68

df1.Uint(1).set(0, 1);

70

BOOST_CHECK(

df

.Equal(df1) ==

false

);

76

df1.Uint(1).set(0, 1);

78

BOOST_CHECK(

df

.Equal(df1));

86  auto

str_it =

df

.String(0).get_back_inserter();

87

str_it.add(

"1"

); str_it.add(

"2"

); str_it.add(

"3"

); str_it.flush();

90  auto

uint_it =

df

.Uint(1).get_back_inserter();

91

uint_it.add(1); uint_it.add(2); uint_it.add(3); uint_it.flush();

99

ncbi::CTmpFile tmpfile;

102

ofstream

out

(tmpfile.GetFileName().c_str());

103  df

.Serialize(

out

);

106

ifstream

t

(tmpfile.GetFileName().c_str());

107  string data

((istreambuf_iterator<char>(

t

)), istreambuf_iterator<char>());

109

BOOST_TEST_CHECKPOINT(

"Deserialize from start"

);

112

BOOST_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