Skip to content

Commit

Permalink
Merge pull request #118 from srz-zumix/feature/optional_nullopt_compa…
Browse files Browse the repository at this point in the history
…re_test

add nullopt eq test
  • Loading branch information
srz-zumix committed Nov 1, 2018
2 parents e3c7d85 + c7dc2bc commit b10d701
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/cxx_feature_tests.cpp
Expand Up @@ -89,6 +89,10 @@ IUTEST(Optional, Compare)
IUTEST_EXPECT_TRUE(opt);
IUTEST_EXPECT_EQ(0, opt);
}
{
::std::optional<int> opt = ::std::nullopt;
IUTEST_EXPECT_EQ(::std::nullopt, opt);
}
{
::std::optional<int> opt = ::std::nullopt;
IUTEST_EXPECT_FALSE(opt);
Expand Down

0 comments on commit b10d701

Please sign in to comment.