De-tab a couple tests. NFC
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@350330 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -23,9 +23,9 @@
|
|||||||
template <class D>
|
template <class D>
|
||||||
void test()
|
void test()
|
||||||
{
|
{
|
||||||
LIBCPP_ASSERT_NOEXCEPT(std::chrono::duration_values<typename D::rep>::max());
|
LIBCPP_ASSERT_NOEXCEPT(std::chrono::duration_values<typename D::rep>::max());
|
||||||
#if TEST_STD_VER > 17
|
#if TEST_STD_VER > 17
|
||||||
ASSERT_NOEXCEPT( std::chrono::duration_values<typename D::rep>::max());
|
ASSERT_NOEXCEPT( std::chrono::duration_values<typename D::rep>::max());
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
typedef typename D::rep Rep;
|
typedef typename D::rep Rep;
|
||||||
|
|||||||
@@ -22,9 +22,9 @@
|
|||||||
template <class D>
|
template <class D>
|
||||||
void test()
|
void test()
|
||||||
{
|
{
|
||||||
LIBCPP_ASSERT_NOEXCEPT(std::chrono::duration_values<typename D::rep>::zero());
|
LIBCPP_ASSERT_NOEXCEPT(std::chrono::duration_values<typename D::rep>::zero());
|
||||||
#if TEST_STD_VER > 17
|
#if TEST_STD_VER > 17
|
||||||
ASSERT_NOEXCEPT( std::chrono::duration_values<typename D::rep>::zero());
|
ASSERT_NOEXCEPT( std::chrono::duration_values<typename D::rep>::zero());
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
typedef typename D::rep Rep;
|
typedef typename D::rep Rep;
|
||||||
|
|||||||
@@ -23,9 +23,9 @@ int main()
|
|||||||
typedef std::chrono::system_clock Clock;
|
typedef std::chrono::system_clock Clock;
|
||||||
typedef std::chrono::milliseconds Duration;
|
typedef std::chrono::milliseconds Duration;
|
||||||
typedef std::chrono::time_point<Clock, Duration> TP;
|
typedef std::chrono::time_point<Clock, Duration> TP;
|
||||||
LIBCPP_ASSERT_NOEXCEPT(TP::max());
|
LIBCPP_ASSERT_NOEXCEPT(TP::max());
|
||||||
#if TEST_STD_VER > 17
|
#if TEST_STD_VER > 17
|
||||||
ASSERT_NOEXCEPT( TP::max());
|
ASSERT_NOEXCEPT( TP::max());
|
||||||
#endif
|
#endif
|
||||||
assert(TP::max() == TP(Duration::max()));
|
assert(TP::max() == TP(Duration::max()));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user