* Parse a future rule string and return the parsed rule as a string. */
| 61 | * Parse a future rule string and return the parsed rule as a string. |
| 62 | */ |
| 63 | std::string stringifyRule(const std::string& ruleString) { |
| 64 | std::shared_ptr<FutureRule> rule = parseFutureRule(ruleString); |
| 65 | std::stringstream buffer; |
| 66 | rule->print(buffer); |
| 67 | return buffer.str(); |
| 68 | } |
| 69 | |
| 70 | TEST(TestTimezone, parseFutureRule) { |
| 71 | EXPECT_EQ(" Future rule: FOO0\n standard FOO 0\n", stringifyRule("FOO0")); |
no test coverage detected