Commit 48b8b54e authored by jds2's avatar jds2

Update cvs with 1.1-1 release souorces.


git-svn-id: http://svn.code.sf.net/p/cunit/code/trunk@34 f00e6729-6848-4c17-8bfb-678c97c00071
parent c81367f2
Microsoft Developer Studio Workspace File, Format Version 6.00
# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE!
###############################################################################
Project: "AutomatedTest"=".\EXAMPLES\AutomatedTest\AutomatedTest.dsp" - Package Owner=<4>
Package=<5>
{{{
}}}
Package=<4>
{{{
Begin Project Dependency
Project_Dep_Name CUnit
End Project Dependency
}}}
###############################################################################
Project: "CUnit"=".\CUnit\CUnit.dsp" - Package Owner=<4>
Package=<5>
{{{
}}}
Package=<4>
{{{
}}}
###############################################################################
Project: "ConsoleTest"=".\Examples\ConsoleTest\ConsoleTest.dsp" - Package Owner=<4>
Package=<5>
{{{
}}}
Package=<4>
{{{
Begin Project Dependency
Project_Dep_Name CUnit
End Project Dependency
}}}
###############################################################################
Global:
Package=<5>
{{{
}}}
Package=<3>
{{{
}}}
###############################################################################
Microsoft Developer Studio Workspace File, Format Version 6.00
# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE!
###############################################################################
Project: "AutomatedTest"=".\EXAMPLES\AutomatedTest\AutomatedTest.dsp" - Package Owner=<4>
Package=<5>
{{{
}}}
Package=<4>
{{{
Begin Project Dependency
Project_Dep_Name CUnit
End Project Dependency
}}}
###############################################################################
Project: "CUnit"=".\CUnit\CUnit.dsp" - Package Owner=<4>
Package=<5>
{{{
}}}
Package=<4>
{{{
}}}
###############################################################################
Project: "ConsoleTest"=".\Examples\ConsoleTest\ConsoleTest.dsp" - Package Owner=<4>
Package=<5>
{{{
}}}
Package=<4>
{{{
Begin Project Dependency
Project_Dep_Name CUnit
End Project Dependency
}}}
###############################################################################
Global:
Package=<5>
{{{
}}}
Package=<3>
{{{
}}}
###############################################################################
Summary: A unit testing framework for 'C'
Name: CUnit
Version : 1.0
Release: 7
Version : 1.1
Release: 1
Epoch: 1
Source: http://www.sourceforge.net/projects/cunit
Group: Development/Tools
......@@ -38,6 +38,7 @@ make install
%{_prefix}/include/CUnit/CUnit.h
%{_prefix}/include/CUnit/Errno.h
%{_prefix}/include/CUnit/TestDB.h
%{_prefix}/include/CUnit/TestRun.h
########## Library File
%{_prefix}/lib/libcunit.a
......@@ -58,16 +59,18 @@ make install
%{_prefix}/man/man8/CUnit.8
########## Share information and Example Files
%{_prefix}/share/CUnit-1.0-7/Example/Automated/README
%{_prefix}/share/CUnit-1.0-7/Example/Automated/AutomatedTest
%{_prefix}/share/CUnit-1.0-7/Example/Console/README
%{_prefix}/share/CUnit-1.0-7/Example/Console/ConsoleTest
%{_prefix}/share/CUnit-1.0-7/Example/Curses/README
%{_prefix}/share/CUnit-1.0-7/Example/Curses/CursesTest
%{_prefix}/share/CUnit-1.1-1/Example/Automated/README
%{_prefix}/share/CUnit-1.1-1/Example/Automated/AutomatedTest
%{_prefix}/share/CUnit-1.1-1/Example/Console/README
%{_prefix}/share/CUnit-1.1-1/Example/Console/ConsoleTest
%{_prefix}/share/CUnit-1.1-1/Example/Curses/README
%{_prefix}/share/CUnit-1.1-1/Example/Curses/CursesTest
%{_prefix}/share/CUnit/CUnit-List.dtd
%{_prefix}/share/CUnit/CUnit-List.xsl
%{_prefix}/share/CUnit/CUnit-Run.dtd
%{_prefix}/share/CUnit/CUnit-Run.xsl
%{_prefix}/share/CUnit/Memory-Dump.dtd
%{_prefix}/share/CUnit/Memory-Dump.xsl
# Add the change log in ChangeLog file located under source home directory.
# The same file is inturn used internally to populate the change log for the RPM
......
......@@ -38,6 +38,7 @@ make install
%{_prefix}/include/CUnit/CUnit.h
%{_prefix}/include/CUnit/Errno.h
%{_prefix}/include/CUnit/TestDB.h
%{_prefix}/include/CUnit/TestRun.h
########## Library File
%{_prefix}/lib/libcunit.a
......@@ -68,6 +69,8 @@ make install
%{_prefix}/share/@PACKAGE@/CUnit-List.xsl
%{_prefix}/share/@PACKAGE@/CUnit-Run.dtd
%{_prefix}/share/@PACKAGE@/CUnit-Run.xsl
%{_prefix}/share/@PACKAGE@/Memory-Dump.dtd
%{_prefix}/share/@PACKAGE@/Memory-Dump.xsl
# Add the change log in ChangeLog file located under source home directory.
# The same file is inturn used internally to populate the change log for the RPM
......
# Microsoft Developer Studio Project File - Name="CUnit" - Package Owner=<4>
# Microsoft Developer Studio Generated Build File, Format Version 6.00
# ** DO NOT EDIT **
# TARGTYPE "Win32 (x86) Static Library" 0x0104
CFG=CUnit - Win32 Debug
!MESSAGE This is not a valid makefile. To build this project using NMAKE,
!MESSAGE use the Export Makefile command and run
!MESSAGE
!MESSAGE NMAKE /f "CUnit.mak".
!MESSAGE
!MESSAGE You can specify a configuration when running NMAKE
!MESSAGE by defining the macro CFG on the command line. For example:
!MESSAGE
!MESSAGE NMAKE /f "CUnit.mak" CFG="CUnit - Win32 Debug"
!MESSAGE
!MESSAGE Possible choices for configuration are:
!MESSAGE
!MESSAGE "CUnit - Win32 Release" (based on "Win32 (x86) Static Library")
!MESSAGE "CUnit - Win32 Debug" (based on "Win32 (x86) Static Library")
!MESSAGE
# Begin Project
# PROP AllowPerConfigDependencies 0
# PROP Scc_ProjName ""
# PROP Scc_LocalPath ""
CPP=cl.exe
RSC=rc.exe
!IF "$(CFG)" == "CUnit - Win32 Release"
# PROP BASE Use_MFC 0
# PROP BASE Use_Debug_Libraries 0
# PROP BASE Output_Dir "Release"
# PROP BASE Intermediate_Dir "Release"
# PROP BASE Target_Dir ""
# PROP Use_MFC 0
# PROP Use_Debug_Libraries 0
# PROP Output_Dir ""
# PROP Intermediate_Dir "Temp"
# PROP Target_Dir ""
# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" /YX /FD /c
# ADD CPP /nologo /W3 /GX /O2 /I "./Headers" /D "NDEBUG" /D "WIN32" /D "_MBCS" /D "_LIB" /D "_DELAYTEST" /YX /FD /c
# ADD BASE RSC /l 0x409 /d "NDEBUG"
# ADD RSC /l 0x409 /d "NDEBUG"
BSC32=bscmake.exe
# ADD BASE BSC32 /nologo
# ADD BSC32 /nologo
LIB32=link.exe -lib
# ADD BASE LIB32 /nologo
# ADD LIB32 /nologo
!ELSEIF "$(CFG)" == "CUnit - Win32 Debug"
# PROP BASE Use_MFC 0
# PROP BASE Use_Debug_Libraries 1
# PROP BASE Output_Dir "Debug"
# PROP BASE Intermediate_Dir "Debug"
# PROP BASE Target_Dir ""
# PROP Use_MFC 0
# PROP Use_Debug_Libraries 1
# PROP Output_Dir ""
# PROP Intermediate_Dir "Temp"
# PROP Target_Dir ""
# ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_MBCS" /D "_LIB" /YX /FD /GZ /c
# ADD CPP /nologo /W3 /Gm /GX /ZI /Od /I "./Headers" /D "_LIB" /D VERSION=1.0.6B /D "_DEBUG" /D "WIN32" /D "_MBCS" /D "_DELAYTEST" /D "MEMTRACE" /YX /FD /GZ /c
# ADD BASE RSC /l 0x409 /d "_DEBUG"
# ADD RSC /l 0x409 /d "_DEBUG"
BSC32=bscmake.exe
# ADD BASE BSC32 /nologo
# ADD BSC32 /nologo
LIB32=link.exe -lib
# ADD BASE LIB32 /nologo
# ADD LIB32 /nologo
!ENDIF
# Begin Target
# Name "CUnit - Win32 Release"
# Name "CUnit - Win32 Debug"
# Begin Group "Source Files"
# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
# Begin Source File
SOURCE=.\Sources\Framework\AssertImpl.c
# End Source File
# Begin Source File
SOURCE=.\Sources\Automated\Automated.c
# End Source File
# Begin Source File
SOURCE=.\Sources\Console\Console.c
# End Source File
# Begin Source File
SOURCE=.\Sources\Framework\MyMem.c
# End Source File
# Begin Source File
SOURCE=.\Sources\Framework\TestDB.c
# End Source File
# Begin Source File
SOURCE=.\Sources\Framework\TestRun.c
# End Source File
# Begin Source File
SOURCE=.\Sources\Framework\Util.c
# End Source File
# End Group
# Begin Group "Header Files"
# PROP Default_Filter "h;hpp;hxx;hm;inl"
# Begin Source File
SOURCE=.\Headers\Automated.h
# End Source File
# Begin Source File
SOURCE=.\Headers\Console.h
# End Source File
# Begin Source File
SOURCE=.\Headers\CUnit.h
# End Source File
# Begin Source File
SOURCE=.\Headers\Errno.h
# End Source File
# Begin Source File
SOURCE=.\Headers\MyMem.h
# End Source File
# Begin Source File
SOURCE=.\Headers\TestDB.h
# End Source File
# Begin Source File
SOURCE=.\Headers\TestRun.h
# End Source File
# End Group
# End Target
# End Project
# Microsoft Developer Studio Project File - Name="CUnit" - Package Owner=<4>
# Microsoft Developer Studio Generated Build File, Format Version 6.00
# ** DO NOT EDIT **
# TARGTYPE "Win32 (x86) Static Library" 0x0104
CFG=CUnit - Win32 Debug
!MESSAGE This is not a valid makefile. To build this project using NMAKE,
!MESSAGE use the Export Makefile command and run
!MESSAGE
!MESSAGE NMAKE /f "CUnit.mak".
!MESSAGE
!MESSAGE You can specify a configuration when running NMAKE
!MESSAGE by defining the macro CFG on the command line. For example:
!MESSAGE
!MESSAGE NMAKE /f "CUnit.mak" CFG="CUnit - Win32 Debug"
!MESSAGE
!MESSAGE Possible choices for configuration are:
!MESSAGE
!MESSAGE "CUnit - Win32 Release" (based on "Win32 (x86) Static Library")
!MESSAGE "CUnit - Win32 Debug" (based on "Win32 (x86) Static Library")
!MESSAGE
# Begin Project
# PROP AllowPerConfigDependencies 0
# PROP Scc_ProjName ""
# PROP Scc_LocalPath ""
CPP=cl.exe
RSC=rc.exe
!IF "$(CFG)" == "CUnit - Win32 Release"
# PROP BASE Use_MFC 0
# PROP BASE Use_Debug_Libraries 0
# PROP BASE Output_Dir "Release"
# PROP BASE Intermediate_Dir "Release"
# PROP BASE Target_Dir ""
# PROP Use_MFC 0
# PROP Use_Debug_Libraries 0
# PROP Output_Dir ""
# PROP Intermediate_Dir "Temp"
# PROP Target_Dir ""
# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" /YX /FD /c
# ADD CPP /nologo /W3 /GX /O2 /I "./Headers" /D "NDEBUG" /D "WIN32" /D "_MBCS" /D "_LIB" /D "_DELAYTEST" /YX /FD /c
# ADD BASE RSC /l 0x409 /d "NDEBUG"
# ADD RSC /l 0x409 /d "NDEBUG"
BSC32=bscmake.exe
# ADD BASE BSC32 /nologo
# ADD BSC32 /nologo
LIB32=link.exe -lib
# ADD BASE LIB32 /nologo
# ADD LIB32 /nologo
!ELSEIF "$(CFG)" == "CUnit - Win32 Debug"
# PROP BASE Use_MFC 0
# PROP BASE Use_Debug_Libraries 1
# PROP BASE Output_Dir "Debug"
# PROP BASE Intermediate_Dir "Debug"
# PROP BASE Target_Dir ""
# PROP Use_MFC 0
# PROP Use_Debug_Libraries 1
# PROP Output_Dir ""
# PROP Intermediate_Dir "Temp"
# PROP Target_Dir ""
# ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_MBCS" /D "_LIB" /YX /FD /GZ /c
# ADD CPP /nologo /W3 /Gm /GX /ZI /Od /I "./Headers" /D "_LIB" /D VERSION=1.0.6B /D "_DEBUG" /D "WIN32" /D "_MBCS" /D "_DELAYTEST" /D "MEMTRACE" /YX /FD /GZ /c
# ADD BASE RSC /l 0x409 /d "_DEBUG"
# ADD RSC /l 0x409 /d "_DEBUG"
BSC32=bscmake.exe
# ADD BASE BSC32 /nologo
# ADD BSC32 /nologo
LIB32=link.exe -lib
# ADD BASE LIB32 /nologo
# ADD LIB32 /nologo
!ENDIF
# Begin Target
# Name "CUnit - Win32 Release"
# Name "CUnit - Win32 Debug"
# Begin Group "Source Files"
# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
# Begin Source File
SOURCE=.\Sources\Framework\AssertImpl.c
# End Source File
# Begin Source File
SOURCE=.\Sources\Automated\Automated.c
# End Source File
# Begin Source File
SOURCE=.\Sources\Console\Console.c
# End Source File
# Begin Source File
SOURCE=.\Sources\Framework\MyMem.c
# End Source File
# Begin Source File
SOURCE=.\Sources\Framework\TestDB.c
# End Source File
# Begin Source File
SOURCE=.\Sources\Framework\TestRun.c
# End Source File
# Begin Source File
SOURCE=.\Sources\Framework\Util.c
# End Source File
# End Group
# Begin Group "Header Files"
# PROP Default_Filter "h;hpp;hxx;hm;inl"
# Begin Source File
SOURCE=.\Headers\Automated.h
# End Source File
# Begin Source File
SOURCE=.\Headers\Console.h
# End Source File
# Begin Source File
SOURCE=.\Headers\CUnit.h
# End Source File
# Begin Source File
SOURCE=.\Headers\Errno.h
# End Source File
# Begin Source File
SOURCE=.\Headers\MyMem.h
# End Source File
# Begin Source File
SOURCE=.\Headers\TestDB.h
# End Source File
# Begin Source File
SOURCE=.\Headers\TestRun.h
# End Source File
# End Group
# End Target
# End Project
/*
* CUnit - A Unit testing framework library for C.
* Copyright (C) 2001 Anil Kumar
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
/*
* Contains Interface for Automated Run tests which generates HTML Report Files.
*
* Created By : Anil Kumar on ...(in month of Feb 2002)
* Last Modified : 13/Feb/2002
* Comment : Single interface to automated_run_tests
* EMail : aksaharan@yahoo.com
*/
#ifndef _CUNIT_AUTOMATED_H
#define _CUNIT_AUTOMATED_H 1
#include "CUnit.h"
#include "TestDB.h"
#ifdef __cplusplus
extern "C" {
#endif
extern void automated_run_tests(void);
extern void set_output_filename(char* szFilename);
#ifdef __cplusplus
}
#endif
#endif /* _CUNIT_AUTOMATED_H_ */
/*
* CUnit - A Unit testing framework library for C.
* Copyright (C) 2001 Anil Kumar
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
/*
* Contains Interface for Automated Run tests which generates HTML Report Files.
*
* Created By : Anil Kumar on ...(in month of Feb 2002)
* Last Modified : 13/Feb/2002
* Comment : Single interface to automated_run_tests
* EMail : aksaharan@yahoo.com
*/
#ifndef _CUNIT_AUTOMATED_H
#define _CUNIT_AUTOMATED_H 1
#include "CUnit.h"
#include "TestDB.h"
#ifdef __cplusplus
extern "C" {
#endif
extern void automated_run_tests(void);
extern void set_output_filename(char* szFilename);
#ifdef __cplusplus
}
#endif
#endif /* _CUNIT_AUTOMATED_H_ */
/*
* CUnit - A Unit testing framework library for C.
* Copyright (C) 2001 Anil Kumar
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
/*
* Contains ASSERT Macro definition
*
* Created By : Anil Kumar on ...(in month of Aug 2001)
* Last Modified : 09/Aug/2001
* Comment : ASSERT definition
* EMail : aksaharan@yahoo.com
*/
#ifndef _CUNIT_CUNIT_H
#define _CUNIT_CUNIT_H 1
#include "Errno.h"
#ifdef __cplusplus
extern "C" {
#endif
/*
* This is including the null character for termination. In effect it comes out
* to be 255 characters.
*/
#define MAX_TEST_NAME_LENGTH 256
#define MAX_GROUP_NAME_LENGTH 256
/*
* Global type Definitions to be used for boolean operators
*/
#ifndef BOOL
#define BOOL int
#endif
#ifndef FALSE
#define FALSE (int)0
#endif
#ifndef TRUE
#define TRUE (int)~FALSE
#endif
extern void assertImplementation(unsigned int bValue,unsigned int uiLine,
char strCondition[], char strFile[], char strFunction[]);
#undef ASSERT
#define ASSERT(value) if (0 == (int)(value)) { assertImplementation(value, __LINE__, #value, __FILE__, ""); return; }
#ifdef __cplusplus
}
#endif
#endif /* _CUNIT_CUNIT_H */
/*
* CUnit - A Unit testing framework library for C.
* Copyright (C) 2001 Anil Kumar
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
/*
* Contains ASSERT Macro definition
*
* Created By : Anil Kumar on ...(in month of Aug 2001)
* Last Modified : 09/Aug/2001
* Comment : ASSERT definition
* EMail : aksaharan@yahoo.com
*
* Last Modified : 12/Mar/2003
* Comment : New Assert definitions
* EMail : aksaharan@yahoo.com
*
* Last Modified : 27/Jul/2003
* Comment : Modified ASSERT_XXX Macro definitions
* EMail : aksaharan@yahoo.com
*/
#ifndef _CUNIT_CUNIT_H
#define _CUNIT_CUNIT_H 1
#include <string.h>
#include <math.h>
#include "Errno.h"
#ifdef __cplusplus
extern "C" {
#endif
/*
* This is including the null character for termination. In effect it comes out
* to be 255 characters.
*/
#define MAX_TEST_NAME_LENGTH 256
#define MAX_GROUP_NAME_LENGTH 256
/*
* Global type Definitions to be used for boolean operators
*/
#ifndef BOOL
#define BOOL int
#endif
#ifndef FALSE
#define FALSE ((int)0)
#endif
#ifndef TRUE
#define TRUE (~FALSE)
#endif
extern void assertImplementation(unsigned int bValue,unsigned int uiLine,
char strCondition[], char strFile[], char strFunction[]);
#undef ASSERT
#define ASSERT(value) { if (FALSE == (int)(value)) { assertImplementation(value, __LINE__, #value, __FILE__, ""); return; }}
/* Different ASSERT_XXXX definitions for ease of use */
#define ASSERT_TRUE(value) { if (FALSE == (value)) { assertImplementation(FALSE, __LINE__, ("ASSERT_TRUE(" #value ")"), __FILE__, ""); return; }}
#define ASSERT_FALSE(value) { if (FALSE != (value)) { assertImplementation(FALSE, __LINE__, ("ASSERT_FALSE(" #value ")"), __FILE__, ""); return; }}
#define ASSERT_EQUAL(actual, expected) { if ((actual) != (expected)) { assertImplementation(FALSE, __LINE__, ("ASSERT_EQUAL(" #actual "," #expected ")"), __FILE__, ""); return; }}
#define ASSERT_NOT_EQUAL(actual, expected) { if ((void*)(actual) == (void*)(expected)) { assertImplementation(FALSE, __LINE__, ("ASSERT_NOT_EQUAL(" #actual "," #expected ")"), __FILE__, ""); return; }}
#define ASSERT_PTR_EQUAL(actual, expected) { if ((void*)(actual) != (void*)(expected)) { assertImplementation(FALSE, __LINE__, ("ASSERT_PTR_EQUAL(" #actual "," #expected ")"), __FILE__, ""); return; }}
#define ASSERT_PTR_NOT_EQUAL(actual, expected) { if ((void*)(actual) == (void*)(expected)) { assertImplementation(FALSE, __LINE__, ("ASSERT_PTR_NOT_EQUAL(" #actual "," #expected ")"), __FILE__, ""); return; }}
#define ASSERT_PTR_NULL(value) { if (NULL != (void*)(value)) { assertImplementation(FALSE, __LINE__, ("ASSERT_PTR_NULL(" #value")"), __FILE__, ""); return; }}
#define ASSERT_PTR_NOT_NULL(value) { if (NULL == (void*)(value)) { assertImplementation(FALSE, __LINE__, ("ASSERT_PTR_NOT_NULL(" #value")"), __FILE__, ""); return; }}
#define ASSERT_STRING_EQUAL(actual, expected) { if (strcmp((const char*)actual, (const char*)expected)) { assertImplementation(FALSE, __LINE__, ("ASSERT_STRING_EQUAL(" #actual "," #expected ")"), __FILE__, ""); return; }}
#define ASSERT_STRING_NOT_EQUAL(actual, expected) { if (!strcmp((const char*)actual, (const char*)expected)) { assertImplementation(TRUE, __LINE__, ("ASSERT_STRING_NOT_EQUAL(" #actual "," #expected ")"), __FILE__, ""); return; }}
#define ASSERT_NSTRING_EQUAL(actual, expected, count) { if (strncmp((const char*)actual, (const char*)expected, (size_t)count)) { assertImplementation(FALSE, __LINE__, ("ASSERT_NSTRING_EQUAL(" #actual "," #expected "," #count ")"), __FILE__, ""); return; }}
#define ASSERT_NSTRING_NOT_EQUAL(actual, expected, count) { if (!strncmp((const char*)actual, (const char*)expected, (size_t)count)) { assertImplementation(TRUE, __LINE__, ("ASSERT_NSTRING_NOT_EQUAL(" #actual "," #expected "," #count ")"), __FILE__, ""); return; }}
#define ASSERT_DOUBLE_EQUAL(actual, expected, granularity) { if ((fabs((double)actual - expected) > fabs((double)granularity))) { assertImplementation(FALSE, __LINE__, ("ASSERT_DOUBLE_EQUAL(" #actual "," #expected "," #granularity ")"), __FILE__, ""); return; }}