#include <timely/time_stamp.h>
#include <unit_test/unit_base.h>
-#ifdef __WIN32__
+#ifdef _MSC_VER
#include <comdef.h>
#endif
#include <stdio.h>
*fred3 += *fred2;
// testing adding a null to a string.
- *fred2 += (char *)NIL;
- *fred3 += (char *)NIL;
+ *fred2 += (char *)NULL_POINTER;
+ *fred3 += (char *)NULL_POINTER;
#ifdef DEBUG_STRING_TEST
LOG(astring("[ ") + *fred1 + " & " + *fred2 + "] -> " + *fred3);
void test_string::run_test_13()
{
-// FUNCDEF("run_test_13");
+ FUNCDEF("run_test_13");
// check for possible memory leaks in these combined ops.... 13th.
const astring churg("borjh sjh oiweoklj");
astring pud = churg;
void test_string::run_test_17()
{
-// FUNCDEF("run_test_17");
+ FUNCDEF("run_test_17");
// 17th test checks construction of temporaries.
/* this test set causes the obnoxious 16 bit codeguard error from hell, as
does use of temporary objects in ostream << operators. argh! */
void test_string::run_test_24()
{
FUNCDEF("run_test_24");
+#ifndef __GNU_WINDOWS__
#ifdef __WIN32__
// 24th test group tests _bstr_t conversions.
_bstr_t beast("abcdefgh");
_bstr_t pork = string_convert::to_bstr_t(jethro);
ASSERT_FALSE(strcmp(pork.operator char *(), jethro.s()), "second test failed comparison");
#endif
+#endif
}
void test_string::run_test_25()
void test_string::run_test_26()
{
-// FUNCDEF("run_test_26");
+ FUNCDEF("run_test_26");
// 26th test group does simple time_stamp::notarize operations. these are more for
// ensuring boundschecker gets to see some of this.
astring t2 = time_stamp::notarize(false);
void test_string::run_test_27()
{
-// FUNCDEF("run_test_27");
+ FUNCDEF("run_test_27");
// 27th test group plays around with idate in an attempt to get
// boundschecker to complain.
timely::day_in_year d1 = date_now();
void standard_sprintf_test(const char *parm_string)
{
-// FUNCDEF("standard_sprintf_test");
+ FUNCDEF("standard_sprintf_test");
astring print_into(' ', 20000);
print_into[0] = '\0';
//check these!!!:
void test_string::run_test_34()
{
-// FUNCDEF("run_test_34");
+ FUNCDEF("run_test_34");
//not in use right now.
void test_string::run_test_38()
{
-// FUNCDEF("run_test_38");
+ FUNCDEF("run_test_38");
double to_print = 2.345;
a_sprintf non_deadly("%.1f", to_print);
/// LOG(astring("printed: ") + non_deadly);