+++ /dev/null
-#ifndef __NNCC_CORE_ADT_PRINTABLE_H__
-#define __NNCC_CORE_ADT_PRINTABLE_H__
-
-#include <ostream>
-
-namespace nncc
-{
-namespace core
-{
-namespace ADT
-{
-
-struct Printable
-{
- virtual ~Printable() = default;
-
- virtual void print(std::ostream &os) const = 0;
-};
-
-std::ostream &operator<<(std::ostream &os, const Printable &prn);
-
-} // namespace ADT
-} // namespace core
-} // namespace nncc
-
-#endif // __NNCC_CORE_ADT_PRINTABLE_H__
+++ /dev/null
-#include <nncc/core/ADT/Printable.h>
-
-#include <string>
-#include <sstream>
-
-#include <gtest/gtest.h>
-
-namespace
-{
-
-class PrintableObject final : public nncc::core::ADT::Printable
-{
-public:
- PrintableObject(const std::string &message) : _message{message}
- {
- // DO NOTHING
- }
-
-public:
- void print(std::ostream &os) const override { os << _message; }
-
-private:
- const std::string _message;
-};
-}
-
-TEST(ADT_PRINTABLE, shift_operator)
-{
- const std::string message{"hello"};
- const ::PrintableObject object{message};
-
- std::stringstream ss;
-
- ss << object;
-
- ASSERT_EQ(ss.str(), message);
-}