Skip to content

Commit

Permalink
🆕 [Example] TMP tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kris-jusiak authored and krzysztof-jusiak committed Dec 3, 2019
1 parent c2f93a9 commit 79d6b67
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
1 change: 1 addition & 0 deletions example/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ example(should should)
example(skip skip)
example(suite suite)
example(test _test)
example(tmp tmp)
example(using using)

set(CMAKE_CXX_STANDARD 17)
Expand Down
22 changes: 22 additions & 0 deletions example/tmp.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
//
// Copyright (c) 2019 Kris Jusiak (kris at jusiak dot net)
//
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
//
#include <boost/ut.hpp>

template <class...>
struct list {};

int main() {
using namespace boost::ut;

static constexpr auto i = 42;

"tmp"_test = [] {
expect(constant<42_i == i> and type<void> == type<void> and
type<list<void, int>> == type<list<void, int>>);
};
}

0 comments on commit 79d6b67

Please sign in to comment.