Commit 1075fe3a authored by Purves, Murray's avatar Purves, Murray
Browse files

Moving conversion tests to use big file

parent 32710124
Pipeline #16180 failed with stages
in 8 minutes and 1 second
......@@ -212,8 +212,8 @@ TEST(RadixIO, SpectrumToSPE)
TEST(RadixIO, PCFToSPE)
{
// Read in a test spectrum
std::string testReadPCFFile = radix::to_native_path(
std::string(dirname(__FILE__) + "/data/detective-ex100.pcf"));
std::string testReadPCFFile =
radix::to_native_path(std::string(dirname(__FILE__) + "/data/235F.pcf"));
Spectrum::SP testSpectrum1 = std::make_shared<Spectrum>();
SpectrumPCFStream<Spectrum::SP> testStream1(testSpectrum1);
ASSERT_TRUE(testStream1.read_from(testReadPCFFile));
......@@ -229,7 +229,7 @@ TEST(RadixIO, PCFToSPE)
ASSERT_TRUE(testStream2.read_from(testWriteSPEFile));
// Test the contents of the two spectra
EXPECT_EQ(1, testSpectrum2->spectrumDataCount());
EXPECT_EQ(30, testSpectrum2->spectrumDataCount());
ASSERT_EQ(testSpectrum1->spectrumDataCount(),
testSpectrum2->spectrumDataCount());
float tolerance = 0.001f;
......@@ -298,8 +298,8 @@ TEST(RadixIO, PCFToSPE)
TEST(RadixIO, SPEToPCF)
{
// Read in a test spectrum
std::string testReadSPEFile = radix::to_native_path(
std::string(dirname(__FILE__) + "/data/235F-single.spe"));
std::string testReadSPEFile =
radix::to_native_path(std::string(dirname(__FILE__) + "/data/235F.spe"));
Spectrum::SP testSpectrum1 = std::make_shared<Spectrum>();
SpectrumSPEStream<Spectrum::SP> testStream1(testSpectrum1);
ASSERT_TRUE(testStream1.read_from(testReadSPEFile));
......@@ -315,7 +315,7 @@ TEST(RadixIO, SPEToPCF)
ASSERT_TRUE(testStream2.read_from(testWritePCFFile));
// Test the contents of the two spectra
EXPECT_EQ(1, testSpectrum2->spectrumDataCount());
EXPECT_EQ(30, testSpectrum2->spectrumDataCount());
ASSERT_EQ(testSpectrum1->spectrumDataCount(),
testSpectrum2->spectrumDataCount());
float tolerance = 0.001f;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment