tstRTCType.cpp revision fe9f51776cc516a4693300040e986f614ae9d548
/* $Id$ */
/** @file
* IPRT Testcase - ctype.h.
*/
/*
* Copyright (C) 2011 Oracle Corporation
*
* This file is part of VirtualBox Open Source Edition (OSE), as
* available from http://www.virtualbox.org. This file is free software;
* General Public License (GPL) as published by the Free Software
* Foundation, in version 2 as it comes in the "COPYING" file of the
* VirtualBox OSE distribution. VirtualBox OSE is distributed in the
* hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
*
* The contents of this file may alternatively be used under the terms
* of the Common Development and Distribution License Version 1.0
* (CDDL) only, as it comes in the "COPYING.CDDL" file of the
* VirtualBox OSE distribution, in which case the provisions of the
* CDDL are applicable instead of those of the GPL.
*
* You may elect to license modified versions of this file under the
* terms and conditions of either the GPL or the CDDL or both.
*/
/*******************************************************************************
* Header Files *
*******************************************************************************/
# define VERIFY_TEST_DATA
# include <locale.h>
# include <ctype.h>
#endif
/*******************************************************************************
* Global Variables *
*******************************************************************************/
do { \
} while (0)
{
/* [0x00] = */ X_CNTRL,
/* [0x01] = */ X_CNTRL,
/* [0x02] = */ X_CNTRL,
/* [0x03] = */ X_CNTRL,
/* [0x04] = */ X_CNTRL,
/* [0x05] = */ X_CNTRL,
/* [0x06] = */ X_CNTRL,
/* [0x07] = */ X_CNTRL,
/* [0x08] = */ X_CNTRL,
/* [0x0e] = */ X_CNTRL,
/* [0x0f] = */ X_CNTRL,
/* [0x10] = */ X_CNTRL,
/* [0x11] = */ X_CNTRL,
/* [0x12] = */ X_CNTRL,
/* [0x13] = */ X_CNTRL,
/* [0x14] = */ X_CNTRL,
/* [0x15] = */ X_CNTRL,
/* [0x16] = */ X_CNTRL,
/* [0x17] = */ X_CNTRL,
/* [0x18] = */ X_CNTRL,
/* [0x19] = */ X_CNTRL,
/* [0x1a] = */ X_CNTRL,
/* [0x1b] = */ X_CNTRL,
/* [0x1c] = */ X_CNTRL,
/* [0x1d] = */ X_CNTRL,
/* [0x1e] = */ X_CNTRL,
/* [0x1f] = */ X_CNTRL,
};
#ifdef VERIFY_TEST_DATA
static void test0(void)
{
RTTestISub("Verify test data");
{
/*TEST_X(ch, isodigit, X_ODIGIT);*/
}
}
#endif /* VERIFY_TEST_DATA */
static void test1(void)
{
RTTestISub("ASCII range");
{
}
}
static void test2(void)
{
RTTestISub("< 0");
{
}
}
static void test3(void)
{
RTTestISub("> 127");
{
}
}
int main()
{
if (rc)
return rc;
#ifdef VERIFY_TEST_DATA
test0();
#endif
test1();
test2();
test3();
/*
* Summary.
*/
return RTTestSummaryAndDestroy(hTest);
}