31 lines
547 B
C++
31 lines
547 B
C++
#include "cwCommon.h"
|
|
#include "cwLog.h"
|
|
#include "cwCommonImpl.h"
|
|
#include "cwMem.h"
|
|
#include "cwFile.h"
|
|
#include "cwTest.h"
|
|
#include "cwLex.h"
|
|
#include "cwText.h"
|
|
#include "cwTest.h"
|
|
#include "cwNumericConvert.h"
|
|
|
|
|
|
cw::rc_t cw::numericConvertTest( const test::test_args_t& args )
|
|
{
|
|
int8_t x0 = 3;
|
|
int x1 = 127;
|
|
|
|
cw::numeric_convert( x1, x0 );
|
|
cwLogPrint("%i %i\n",x0,x1);
|
|
|
|
|
|
int v0 = -1;
|
|
double v1 = -1;
|
|
cw::string_to_number("123",v0);
|
|
cw::string_to_number("3.4",v1);
|
|
cwLogPrint("%i %f\n",v0,v1 );
|
|
|
|
return cw::kOkRC;
|
|
}
|
|
|