Home || Architecture || Video Search || Visual Search || Scripts || Applications || Important Messages || OGL || Src

BOOST_FIXTURE_TEST_CASE ( TableDataSourceTestCase  ,
TableDataSourceFixture   
)

Definition at line 96 of file testTableDataSource.h.

References IsValidTableDataSourceTest().

00096                                                                          {
00097         IsValidTableDataSourceTest(src);
00098 
00099     BOOST_CHECK_EQUAL(src->GetColumns(true, false).size(), 1);
00100     BOOST_CHECK_EQUAL(src->GetColumns(false, true).size(), 3);
00101     BOOST_CHECK_EQUAL(src->GetColumns(true, true).size(), 4);
00102 
00103     for(int i=0; i < src->GetTotalRows(); i++) {
00104         BOOST_CHECK_EQUAL(src->GetIntDataByID("id", i), i);
00105         BOOST_CHECK_EQUAL(src->GetNormalizedDataByID("red", i), i/(double)src->GetTotalRows());
00106         BOOST_CHECK_EQUAL(src->GetNormalizedDataByID("green", i), 1.0-src->GetNormalizedDataByID("red", i));
00107         BOOST_CHECK_EQUAL(src->GetNormalizedDataByID("blue", i), i%10 / 10.0);
00108     }
00109 
00110 }

Here is the call graph for this function:


Generated on Fri Mar 19 09:38:40 2010 for ImpalaSrc by  doxygen 1.5.1