Skip to content
Snippets Groups Projects
ArrayTest.cpp 456 B
Newer Older
Jan Trávníček's avatar
Jan Trávníček committed
#include "ArrayTest.h"
#include <alib/map>
#include <alib/algorithm>
#include <alib/array>

CPPUNIT_TEST_SUITE_NAMED_REGISTRATION( ArrayTest, "bits" );
CPPUNIT_TEST_SUITE_REGISTRATION( ArrayTest );

void ArrayTest::setUp() {
}

void ArrayTest::tearDown() {
}

void ArrayTest::basicTest() {
	ext::array < int, 3 > a = ext::make_array ( 1, 2, 3 );

	CPPUNIT_ASSERT ( a [ 0 ] == 1 );

	ext::array < int, 3 > b = a;

	CPPUNIT_ASSERT ( b [ 1 ] == a [ 1 ] );