| 15 | using namespace openstudio::measure; |
| 16 | |
| 17 | TEST_F(MeasureFixture, OSOutput) { |
| 18 | |
| 19 | OSOutput boolOutput = OSOutput::makeBoolOutput("bool"); |
| 20 | OSOutput doubleOutput = OSOutput::makeDoubleOutput("double"); |
| 21 | OSOutput integerOutput = OSOutput::makeIntegerOutput("integer"); |
| 22 | OSOutput stringOutput = OSOutput::makeStringOutput("string"); |
| 23 | |
| 24 | EXPECT_EQ(OSOutputType::Boolean, boolOutput.type().value()); |
| 25 | EXPECT_EQ(OSOutputType::Integer, integerOutput.type().value()); |
| 26 | EXPECT_EQ(OSOutputType::Double, doubleOutput.type().value()); |
| 27 | EXPECT_EQ(OSOutputType::String, stringOutput.type().value()); |
| 28 | |
| 29 | std::stringstream os; |
| 30 | os << boolOutput; |
| 31 | os << integerOutput; |
| 32 | os << doubleOutput; |
| 33 | os << stringOutput; |
| 34 | } |