Commit 6dee28d8 authored by Purves, Murray's avatar Purves, Murray
Browse files

WIP tests - adding simpler PCF file for analysis

parent badab4bf
Pipeline #16158 failed with stages
in 7 minutes and 35 seconds
......@@ -23,8 +23,8 @@ TEST(RadixIO, SpectrumFromPCF)
TEST(RadixIO, SpectrumToPCF)
// Read in a test spectrum
std::string testReadPCFFile =
radix::to_native_path(std::string(dirname(__FILE__) + "/data/235F.pcf"));
std::string testReadPCFFile = radix::to_native_path(
std::string(dirname(__FILE__) + "/data/detective-ex100.pcf"));
Spectrum::SP testSpectrum1 = std::make_shared<Spectrum>();
SpectrumPCFStream<Spectrum::SP> testStream1(testSpectrum1);
......@@ -32,6 +32,16 @@ TEST(RadixIO, SpectrumToPCF)
// Write the spectrum back out to a file
std::string testWritePCFFile = "test.pcf";
// Read it again and ensure the round trip is successful
Spectrum::SP testSpectrum2 = std::make_shared<Spectrum>();
SpectrumPCFStream<Spectrum::SP> testStream2(testSpectrum2);
// Test the contents of the two spectra
EXPECT_EQ(30, testSpectrum2->spectrumDataCount());
TEST(RadixIO, SpectrumFromSPE)
Supports Markdown
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