#include "config.h"
#include <iostream>
#include <string>
#include <cassert>
#include "asserts.h"
#include "types.h"
#include "error.h"
#include "estring.h"
#include "strfmt.h"
Go to the source code of this file.
Defines | |
#define | ERR_OUT(e) |
#define | TEST(code) |
Functions | |
void | test1 (void) |
void | test2 (void) |
void | test3 (void) |
void | test4 (void) |
int | main (int argc, char const *argv[]) |
#define ERR_OUT | ( | e | ) |
Definition at line 14 of file test-strfmt.cc.
#define TEST | ( | code | ) |
try { \ code; \ } \ catch(error e) { \ ERR_OUT(e); \ thrown = true; \ } \ catch(...) { \ assert(0); \ }
Definition at line 16 of file test-strfmt.cc.
int main | ( | int | argc, | |
char const * | argv[] | |||
) |
Definition at line 287 of file test-strfmt.cc.
References err_unknown, test1(), test2(), test3(), and test4().
void test1 | ( | void | ) |
Definition at line 29 of file test-strfmt.cc.
References ERR_OUT, size_to_string(), and TEST.
void test2 | ( | void | ) |
Definition at line 99 of file test-strfmt.cc.
References ERR_OUT, num_to_string(), and TEST.
void test3 | ( | void | ) |
Definition at line 189 of file test-strfmt.cc.
References ERR_OUT, TEST, and throughput_to_string().
void test4 | ( | void | ) |
Definition at line 259 of file test-strfmt.cc.
References percent_string().