58#import <XCTest/XCTest.h>
69static const int16_t test_x = 1, test_y = 2, test_z = 42;
95 strcpy(my_variable.colourCalibration,
"test");
96 int result = strcmp(my_variable.colourCalibration,
"test");
97 XCTAssertEqual(result,0);
103 XCTAssertNotEqual(_wbd, NULL,
@"Whoa, got a NULL singleton Whiteboard");
104 XCTAssertNotEqual(_wb, NULL,
@"Whoa, got a NULL underlying Whiteboard");
117 XCTAssertEqual(point.
x, wbpoint->
x,
@"Got differing x on wb");
118 XCTAssertEqual(point.
y, wbpoint->
y,
@"Got differing y on wb");
124 [
self testPostPoint2D];
129 XCTAssertEqual(test_x, wbpoint->
x,
@"Got differing x from wb");
130 XCTAssertEqual(test_y, wbpoint->
y,
@"Got differing y from wb");
gu_simple_message * gsw_next_message(gu_simple_whiteboard *wb, int i)
get the next shared memory location for the given whiteboard message type i
void gsw_increment(gu_simple_whiteboard *wb, int i)
get the next shared memory location for the given whiteboard message type i
void gsw_increment_event_counter(gu_simple_whiteboard *wb, int i)
add to a messages event counter on the wb
gu_simple_whiteboard_descriptor * get_local_singleton_whiteboard(void)
create a simple whiteboard for the local singleton wb pointer
gu_simple_message * gsw_current_message(gu_simple_whiteboard *wb, int i)
get the current shared memory location for the given whiteboard message type i
plain c code testing of the simple whiteboard implementation
void testWhiteboardIsNotNULL()
void testVisionControlStatus()
gu_simple_whiteboard_descriptor * wbd
wb pointer
gu_simple_whiteboard * wb
wb class pointer
the actual whiteboard in shared mem
the underlying whiteboard object
WHITEBOARD_POSTER_STRING_CONVERSION.
WHITEBOARD_POSTER_STRING_CONVERSION.
union type that is used to store data in shared memory