Commit b894184e authored by Nick Draper's avatar Nick Draper
Browse files

Another attempt to make apple clang happy

parent f697411f
......@@ -316,19 +316,17 @@ public:
// these two both contain invalid data
auto pclog1 = dynamic_cast<TimeSeriesProperty<bool> *>(run.getLogData(
LogManager::getInvalidValuesFilterLogName("cryo_temp1")));
const auto pcValues = pclog1->valuesAsVector();
TS_ASSERT_EQUALS(pcValues.size(), 3);
TS_ASSERT_EQUALS(pcValues[0], true);
TS_ASSERT_EQUALS(pcValues[1], false);
TS_ASSERT_EQUALS(pcValues[2], true);
TS_ASSERT_EQUALS(pclog1->size(), 3);
TS_ASSERT_EQUALS(pclog1->nthValue(0), true);
TS_ASSERT_EQUALS(pclog1->nthValue(1), false);
TS_ASSERT_EQUALS(pclog1->nthValue(2), true);
auto pclog2 = dynamic_cast<TimeSeriesProperty<bool> *>(run.getLogData(
LogManager::getInvalidValuesFilterLogName("cryo_temp2")));
const auto pcValues2 = pclog2->valuesAsVector();
TS_ASSERT_EQUALS(pcValues2.size(), 3);
TS_ASSERT_EQUALS(pcValues2[0], false);
TS_ASSERT_EQUALS(pcValues2[1], false);
TS_ASSERT_EQUALS(pcValues2[2], false);
TS_ASSERT_EQUALS(pclog2->size(), 3);
TS_ASSERT_EQUALS(pclog2->nthValue(0), false);
TS_ASSERT_EQUALS(pclog2->nthValue(1), false);
TS_ASSERT_EQUALS(pclog2->nthValue(2), false);
// force the filtering by passing in an empty log
auto emptyProperty = new TimeSeriesProperty<bool>("empty");
......
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