test(opatIO/tests): updated test file to be written by utils/opatio
This commit is contained in:
@@ -6,7 +6,7 @@
|
|||||||
#include <set>
|
#include <set>
|
||||||
#include <sstream>
|
#include <sstream>
|
||||||
|
|
||||||
std::string EXAMPLE_FILENAME = std::string(getenv("MESON_SOURCE_ROOT")) + "/tests/opatIO/example.opat";
|
std::string EXAMPLE_FILENAME = std::string(getenv("MESON_SOURCE_ROOT")) + "/tests/opatIO/test.opat";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @file opatIOTest.cpp
|
* @file opatIOTest.cpp
|
||||||
@@ -39,9 +39,9 @@ TEST_F(opatIOTest, Header) {
|
|||||||
EXPECT_EQ(header.numTables, 20);
|
EXPECT_EQ(header.numTables, 20);
|
||||||
EXPECT_EQ(header.headerSize, 256);
|
EXPECT_EQ(header.headerSize, 256);
|
||||||
EXPECT_EQ(header.indexOffset, 416416);
|
EXPECT_EQ(header.indexOffset, 416416);
|
||||||
EXPECT_EQ(std::string(header.creationDate), "Feb 14, 2025");
|
EXPECT_EQ(std::string(header.creationDate), "Feb 16, 2025");
|
||||||
EXPECT_EQ(std::string(header.sourceInfo), "MESA 12700, Synthetic Opacity Data");
|
EXPECT_EQ(std::string(header.sourceInfo), "no source provided by user");
|
||||||
EXPECT_EQ(std::string(header.comment), "log10 kappa (cm^2/g)");
|
EXPECT_EQ(std::string(header.comment), "default header");
|
||||||
}
|
}
|
||||||
|
|
||||||
TEST_F(opatIOTest, TableIndex) {
|
TEST_F(opatIOTest, TableIndex) {
|
||||||
|
|||||||
BIN
tests/opatIO/example.opat → tests/opatIO/test.opat
Executable file → Normal file
BIN
tests/opatIO/example.opat → tests/opatIO/test.opat
Executable file → Normal file
Binary file not shown.
Reference in New Issue
Block a user