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