TypeTraits_Tests.cpp 453 B

1234567891011121314151617
  1. // Copyright Benoit Blanchon 2014-2016
  2. // MIT License
  3. //
  4. // Arduino JSON library
  5. // https://github.com/bblanchon/ArduinoJson
  6. // If you like this project, please add a star!
  7. #include <ArduinoJson.h>
  8. #include <gtest/gtest.h>
  9. #include <sstream>
  10. using namespace ArduinoJson::TypeTraits;
  11. TEST(StdStream, IsBaseOf) {
  12. ASSERT_FALSE((IsBaseOf<std::istream, std::ostringstream>::value));
  13. ASSERT_TRUE((IsBaseOf<std::istream, std::istringstream>::value));
  14. }