-//
-// query.cpp
-// core
-//
-// Created by 沼野 正太郎 on 2013/06/22.
-// Copyright (c) 2013年 沼野 正太郎. All rights reserved.
-//
+#ifndef GIKOMONA_CORE_TEST_QUERY_HPP_INCLUDED
+#define GIKOMONA_CORE_TEST_QUERY_HPP_INCLUDED
-#ifndef core_query_cpp
-#define core_query_cpp
+#include <type_traits>
+#include <boost/test/test_unit.hpp>
+#include "../include/query.hpp"
-#endif
+BOOST_AUTO_TEST_SUITE(CORE)
+BOOST_AUTO_TEST_SUITE(query)
+
+namespace gm_core = monazilla::GikoMona::core;
+
+BOOST_AUTO_TEST_CASE(type_concept) {
+ BOOST_REQUIRE_EQUAL(std::is_trivially_copyable<gm_core::query>::value);
+}
+
+BOOST_AUTO_TEST_CASE(selecting) {
+ BOOST_CHECK_MESSAGE(
+ false,
+ gm_core::query().define()
+ .select(gm_core::all_columnes, "test")
+ .dump()
+ );
+ BOOST_CHECK_MESSAGE(
+ false,
+ gm_core::query().define()
+ .select({"name", "birthday", "mail"}, "test")
+ .dump()
+ );
+}
+
+
+BOOST_AUTO_TEST_SUITE_END // query
+BOOST_AUTO_TEST_SUITE_END // CORE
+
+#endif // GIKOMONA_CORE_TEST_QUERY_HPP_INCLUDED
-//
-// test-core.cpp
-// core
-//
-// Created by 沼野 正太郎 on 2013/06/22.
-// Copyright (c) 2013年 沼野 正太郎. All rights reserved.
-//
+#define BOOST_TEST_MODULE my_mod
+#include <boost/test/unit_test.hpp>
+
-#include <stdio.h>