test(opatIO/tests): updated test file to be written by utils/opatio

This commit is contained in:
2025-02-16 12:14:41 -05:00
parent 96da85d028
commit ba98ff5b34
2 changed files with 4 additions and 4 deletions

View File

@@ -6,7 +6,7 @@
#include <set>
#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
@@ -39,9 +39,9 @@ TEST_F(opatIOTest, Header) {
EXPECT_EQ(header.numTables, 20);
EXPECT_EQ(header.headerSize, 256);
EXPECT_EQ(header.indexOffset, 416416);
EXPECT_EQ(std::string(header.creationDate), "Feb 14, 2025");
EXPECT_EQ(std::string(header.sourceInfo), "MESA 12700, Synthetic Opacity Data");
EXPECT_EQ(std::string(header.comment), "log10 kappa (cm^2/g)");
EXPECT_EQ(std::string(header.creationDate), "Feb 16, 2025");
EXPECT_EQ(std::string(header.sourceInfo), "no source provided by user");
EXPECT_EQ(std::string(header.comment), "default header");
}
TEST_F(opatIOTest, TableIndex) {

BIN
tests/opatIO/example.opat → tests/opatIO/test.opat Executable file → Normal file

Binary file not shown.