summaryrefslogtreecommitdiff
path: root/cad/plugins/NanoVision-1/src/Interface/NXNumbersTest.cpp
blob: a3655c6d5f86b78d6d533ceb54692bcdeb541104 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// Copyright 2008 Nanorex, Inc.  See LICENSE file for details.

#include "NXNumbersTest.h"


CPPUNIT_TEST_SUITE_REGISTRATION(NXNumbersTest);
CPPUNIT_TEST_SUITE_NAMED_REGISTRATION(NXNumbersTest, "NXNumbersTestSuite");


/* FUNCTION: setUp */
void NXNumbersTest::setUp() {
}


/* FUNCTION: tearDown */
void NXNumbersTest::tearDown() {
}


/* FUNCTION: toCharTest */
void NXNumbersTest::toCharTest() {
	char buffer1[8];
	NXRealUtils::ToChar(12.123456789, buffer1, 6 /* precision */);
	CPPUNIT_ASSERT(strcmp(buffer1, "12.1235") == 0);
}