| 41 | |
| 42 | template <typename T> |
| 43 | void CheckImplicitConstructor(Datum::Kind expected_kind) { |
| 44 | std::shared_ptr<T> value; |
| 45 | Datum datum = value; |
| 46 | ASSERT_EQ(expected_kind, datum.kind()); |
| 47 | } |
| 48 | |
| 49 | TEST(Datum, ImplicitConstructors) { |
| 50 | CheckImplicitConstructor<Scalar>(Datum::SCALAR); |