mirror of
https://github.com/boostorg/tuple.git
synced 2025-07-29 12:17:32 +02:00
Update test/Jamfile; add test/quick.cpp
This commit is contained in:
17
test/Jamfile
17
test/Jamfile
@ -1,11 +1,12 @@
|
||||
# Copyright (C) 1999, 2000 Jaakko Jarvi (jaakko.jarvi@cs.utu.fi)
|
||||
# Distributed under the Boost Software License, Version 1.0.
|
||||
|
||||
test-suite tuple :
|
||||
[ run tuple_test_bench.cpp ]
|
||||
[ run io_test.cpp ]
|
||||
[ run another_tuple_test_bench.cpp ]
|
||||
[ run std_tuple_size.cpp ]
|
||||
[ run std_tuple_element.cpp ]
|
||||
[ run structured_bindings.cpp ]
|
||||
;
|
||||
import testing ;
|
||||
|
||||
run tuple_test_bench.cpp ;
|
||||
run io_test.cpp ;
|
||||
run another_tuple_test_bench.cpp ;
|
||||
run std_tuple_size.cpp ;
|
||||
run std_tuple_element.cpp ;
|
||||
run structured_bindings.cpp ;
|
||||
run quick.cpp ;
|
||||
|
16
test/quick.cpp
Normal file
16
test/quick.cpp
Normal file
@ -0,0 +1,16 @@
|
||||
// Copyright 2023 Peter Dimov.
|
||||
// Distributed under the Boost Software License, Version 1.0.
|
||||
|
||||
#include <boost/tuple/tuple.hpp>
|
||||
#include <boost/core/lightweight_test.hpp>
|
||||
|
||||
int main()
|
||||
{
|
||||
boost::tuple<int, int, int> tp( 1, 2, 3 );
|
||||
|
||||
BOOST_TEST_EQ( boost::get<0>(tp), 1 );
|
||||
BOOST_TEST_EQ( boost::get<1>(tp), 2 );
|
||||
BOOST_TEST_EQ( boost::get<2>(tp), 3 );
|
||||
|
||||
return boost::report_errors();
|
||||
}
|
Reference in New Issue
Block a user