rvm  1.11
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
test-rconfig-056.cc
Go to the documentation of this file.
1 #include "config.h"
2 
3 #include <iostream>
4 #include <string>
5 #include <cassert>
6 
7 #include "asserts.h"
8 #include "types.h"
9 #include "error.h"
10 #include "estring.h"
11 #include "fs.h"
12 #include "tstamp.h"
13 #include "rconfig.h"
14 
15 // #define ERR_OUT(e) std::cerr << e;
16 #define ERR_OUT(e)
17 
19 {
20  estring s;
21  uint64 i;
23 
24  s = estring(static_cast<uint64>(b_in));
25  i = static_cast<uint64>(s);
26  b_out = static_cast<rsync_behavior::value_type>(i);
27 
28  assert(b_in == b_out);
29 }
30 
31 void test(void)
32 {
38 }
39 
40 int main(int argc, char const * argv[])
41 {
42  try {
43  test();
44  }
45  catch(error e) {
46  std::cerr << e;
47  assert(0);
48  }
49  catch(...) {
50  std::cerr << err_unknown;
51  assert(0);
52  }
53  return(0);
54 }
Basic types definitions and templates.
An extended string class.
Definition: estring.h:52
void test_cast(const rsync_behavior::value_type b_in)
void test(void)
#define err_unknown
Definition: error.h:114
An error class.
Definition: error.h:72
int main(int argc, char const *argv[])