Go to the SVN repository for this file.
25 #include <freetds/convert.h> 26 #include <freetds/time.h> 40fprintf(stderr,
"%d: Wrong results got '%s' expected '%s'\n", line,
out,
expected);
48 main(
intargc,
char**argv)
52memset(&
dr, 0,
sizeof(
dr));
54 #define TEST(prec, fmt, exp) test(&dr, prec, fmt, exp, __LINE__) 57 TEST(3,
"%z",
"000");
58 TEST(0,
"x%z",
"x");
59 TEST(3,
".%z",
".000");
60 dr.decimicrosecond = 1234567;
61 TEST(5,
".%z",
".12345");
62 TEST(4,
"%z",
"1234");
63 TEST(4,
"%z%%",
"1234%");
64 TEST(4,
"%z%H",
"123400");
70 TEST(0,
"%l",
"12");
71 TEST(0,
"%%%l",
"%12");
73 TEST(0,
"%l",
" 4");
77 TEST(0,
"%e",
"23");
79 TEST(0,
"x%e",
"x 5");
std::ofstream out("events_result.xml")
main entry point for tests
static const char * expected[]
The blob sat and sat key Both must be positive integers</td > n< td > Non empty string The interpretation of the blob id depends on a processor Cassandra n processor expects the following format
int strcmp(const char *str1, const char *str2)
int main(int argc, char **argv)
#define TEST(prec, fmt, exp)
static void test(const TDSDATEREC *dr, int prec, const char *fmt, const char *expected, int line)
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