| 38 | |
| 39 | |
| 40 | static vector<pair<string, double>> toVector( |
| 41 | const ResourceQuantities& quantities) |
| 42 | { |
| 43 | vector<pair<string, double>> result; |
| 44 | |
| 45 | foreach (auto&& quantity, quantities) { |
| 46 | result.push_back(std::make_pair(quantity.first, quantity.second.value())); |
| 47 | } |
| 48 | |
| 49 | return result; |
| 50 | } |
| 51 | |
| 52 | |
| 53 | TEST(QuantitiesTest, FromStringValid) |