Skip to content
Snippets Groups Projects
Commit 64e28a0a authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

Meaningful Read SANSDRaw test passes

parent 43a47f48
No related branches found
No related tags found
1 merge request!474Restore subroutine to read Nicos/SANSDRaw files, check for Nicos file type, provide unit test
......@@ -2,7 +2,6 @@
#include "Device/Data/OutputData.h"
#include "BATesting.h"
#include "Tests/GTestWrapper/google_test.h"
#include <cstdio>
class ReadSANSDRawTest : public ::testing::Test {
};
......@@ -17,7 +16,5 @@ TEST_F(ReadSANSDRawTest, Read)
return;
EXPECT_EQ(data->rank(), 2);
EXPECT_EQ(data->getAllocatedSize(), 16384);
for(int i=0; i<16384; ++i)
printf("%5i %5i\n", i, (int)(*data)[i]);
EXPECT_EQ((*data)[64*64-1], 3);
EXPECT_EQ((*data)[128*70+62], 443);
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment