forked from bblanchon/ArduinoJson
18 lines
453 B
C++
18 lines
453 B
C++
![]() |
// Copyright Benoit Blanchon 2014-2016
|
||
|
// MIT License
|
||
|
//
|
||
|
// Arduino JSON library
|
||
|
// https://github.com/bblanchon/ArduinoJson
|
||
|
// If you like this project, please add a star!
|
||
|
|
||
|
#include <ArduinoJson.h>
|
||
|
#include <gtest/gtest.h>
|
||
|
#include <sstream>
|
||
|
|
||
|
using namespace ArduinoJson::TypeTraits;
|
||
|
|
||
|
TEST(StdStream, IsBaseOf) {
|
||
|
ASSERT_FALSE((IsBaseOf<std::istream, std::ostringstream>::value));
|
||
|
ASSERT_TRUE((IsBaseOf<std::istream, std::istringstream>::value));
|
||
|
}
|