Add testsuite checks for param_type in the <random> distributions.

From-SVN: r184501
This commit is contained in:
Edward Smith-Rowland 2012-02-23 02:25:00 +00:00 committed by Edward Smith-Rowland
parent 89f066276f
commit afe03c233e
21 changed files with 83 additions and 20 deletions

View File

@ -1,3 +1,46 @@
2012-02-14 Edward Smith-Rowland <3dw4rd@verizon.net>
* testsuite/26_numerics/random/
uniform_real_distribution/requirements/typedefs.cc: Check param_type.
* testsuite/26_numerics/random/
piecewise_constant_distribution/requirements/typedefs.cc: Ditto.
* testsuite/26_numerics/random/
chi_squared_distribution/requirements/typedefs.cc: Ditto.
* testsuite/26_numerics/random/
normal_distribution/requirements/typedefs.cc: Ditto.
* testsuite/26_numerics/random/
uniform_int_distribution/requirements/typedefs.cc: Ditto.
* testsuite/26_numerics/random/
poisson_distribution/requirements/typedefs.cc: Ditto.
* testsuite/26_numerics/random/
bernoulli_distribution/requirements/typedefs.cc: Ditto.
* testsuite/26_numerics/random/
discrete_distribution/requirements/typedefs.cc: Ditto.
* testsuite/26_numerics/random/
weibull_distribution/requirements/typedefs.cc: Ditto.
* testsuite/26_numerics/random/
cauchy_distribution/requirements/typedefs.cc: Ditto.
* testsuite/26_numerics/random/
negative_binomial_distribution/requirements/typedefs.cc: Ditto.
* testsuite/26_numerics/random/
gamma_distribution/requirements/typedefs.cc: Ditto.
* testsuite/26_numerics/random/
fisher_f_distribution/requirements/typedefs.cc: Ditto.
* testsuite/26_numerics/random/
exponential_distribution/requirements/typedefs.cc: Ditto.
* testsuite/26_numerics/random/
binomial_distribution/requirements/typedefs.cc: Ditto.
* testsuite/26_numerics/random/
lognormal_distribution/requirements/typedefs.cc: Ditto.
* testsuite/26_numerics/random/
extreme_value_distribution/requirements/typedefs.cc: Ditto.
* testsuite/26_numerics/random/
piecewise_linear_distribution/requirements/typedefs.cc: Ditto.
* testsuite/26_numerics/random/
student_t_distribution/requirements/typedefs.cc: Ditto.
* testsuite/26_numerics/random/
geometric_distribution/requirements/typedefs.cc: Ditto.
2012-02-17 Benjamin Kosnik <bkoz@redhat.com>
PR libstdc++/50349

View File

@ -4,7 +4,7 @@
//
// 2008-11-24 Edward M. Smith-Rowland <3dw4rd@verizon.net>
//
// Copyright (C) 2008, 2009 Free Software Foundation, Inc.
// Copyright (C) 2008, 2009, 2012 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
@ -32,4 +32,5 @@ test01()
typedef std::bernoulli_distribution test_type;
typedef test_type::result_type result_type;
typedef test_type::param_type param_type;
}

View File

@ -4,7 +4,7 @@
//
// 2008-11-24 Edward M. Smith-Rowland <3dw4rd@verizon.net>
//
// Copyright (C) 2008, 2009 Free Software Foundation, Inc.
// Copyright (C) 2008, 2009, 2012 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
@ -32,4 +32,5 @@ test01()
typedef std::binomial_distribution<int> test_type;
typedef test_type::result_type result_type;
typedef test_type::param_type param_type;
}

View File

@ -4,7 +4,7 @@
//
// 2008-11-24 Edward M. Smith-Rowland <3dw4rd@verizon.net>
//
// Copyright (C) 2008, 2009 Free Software Foundation, Inc.
// Copyright (C) 2008, 2009, 2012 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
@ -32,4 +32,5 @@ test01()
typedef std::cauchy_distribution<double> test_type;
typedef test_type::result_type result_type;
typedef test_type::param_type param_type;
}

View File

@ -4,7 +4,7 @@
//
// 2008-11-24 Edward M. Smith-Rowland <3dw4rd@verizon.net>
//
// Copyright (C) 2008, 2009 Free Software Foundation, Inc.
// Copyright (C) 2008, 2009, 2012 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
@ -32,4 +32,5 @@ test01()
typedef std::chi_squared_distribution<double> test_type;
typedef test_type::result_type result_type;
typedef test_type::param_type param_type;
}

View File

@ -4,7 +4,7 @@
//
// 2008-12-03 Edward M. Smith-Rowland <3dw4rd@verizon.net>
//
// Copyright (C) 2008, 2009 Free Software Foundation, Inc.
// Copyright (C) 2008, 2009, 2012 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
@ -32,4 +32,5 @@ test01()
typedef std::discrete_distribution<> test_type;
typedef test_type::result_type result_type;
typedef test_type::param_type param_type;
}

View File

@ -4,7 +4,7 @@
//
// 2008-11-24 Edward M. Smith-Rowland <3dw4rd@verizon.net>
//
// Copyright (C) 2008, 2009 Free Software Foundation, Inc.
// Copyright (C) 2008, 2009, 2012 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
@ -32,4 +32,5 @@ test01()
typedef std::exponential_distribution<double> test_type;
typedef test_type::result_type result_type;
typedef test_type::param_type param_type;
}

View File

@ -4,7 +4,7 @@
//
// 2008-11-24 Edward M. Smith-Rowland <3dw4rd@verizon.net>
//
// Copyright (C) 2008, 2009 Free Software Foundation, Inc.
// Copyright (C) 2008, 2009, 2012 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
@ -32,4 +32,5 @@ test01()
typedef std::extreme_value_distribution<double> test_type;
typedef test_type::result_type result_type;
typedef test_type::param_type param_type;
}

View File

@ -4,7 +4,7 @@
//
// 2008-11-24 Edward M. Smith-Rowland <3dw4rd@verizon.net>
//
// Copyright (C) 2008, 2009 Free Software Foundation, Inc.
// Copyright (C) 2008, 2009, 2012 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
@ -32,4 +32,5 @@ test01()
typedef std::fisher_f_distribution<double> test_type;
typedef test_type::result_type result_type;
typedef test_type::param_type param_type;
}

View File

@ -4,7 +4,7 @@
//
// 2008-11-24 Edward M. Smith-Rowland <3dw4rd@verizon.net>
//
// Copyright (C) 2008, 2009 Free Software Foundation, Inc.
// Copyright (C) 2008, 2009, 2012 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
@ -32,4 +32,5 @@ test01()
typedef std::gamma_distribution<double> test_type;
typedef test_type::result_type result_type;
typedef test_type::param_type param_type;
}

View File

@ -4,7 +4,7 @@
//
// 2008-11-24 Edward M. Smith-Rowland <3dw4rd@verizon.net>
//
// Copyright (C) 2008, 2009 Free Software Foundation, Inc.
// Copyright (C) 2008, 2009, 2012 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
@ -32,4 +32,5 @@ test01()
typedef std::geometric_distribution<int> test_type;
typedef test_type::result_type result_type;
typedef test_type::param_type param_type;
}

View File

@ -4,7 +4,7 @@
//
// 2008-11-24 Edward M. Smith-Rowland <3dw4rd@verizon.net>
//
// Copyright (C) 2008, 2009 Free Software Foundation, Inc.
// Copyright (C) 2008, 2009, 2012 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
@ -32,4 +32,5 @@ test01()
typedef std::lognormal_distribution<double> test_type;
typedef test_type::result_type result_type;
typedef test_type::param_type param_type;
}

View File

@ -4,7 +4,7 @@
//
// 2008-11-24 Edward M. Smith-Rowland <3dw4rd@verizon.net>
//
// Copyright (C) 2008, 2009 Free Software Foundation, Inc.
// Copyright (C) 2008, 2009, 2012 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
@ -32,4 +32,5 @@ test01()
typedef std::negative_binomial_distribution<int> test_type;
typedef test_type::result_type result_type;
typedef test_type::param_type param_type;
}

View File

@ -4,7 +4,7 @@
//
// 2008-11-24 Edward M. Smith-Rowland <3dw4rd@verizon.net>
//
// Copyright (C) 2008, 2009 Free Software Foundation, Inc.
// Copyright (C) 2008, 2009, 2012 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
@ -32,4 +32,5 @@ test01()
typedef std::normal_distribution<double> test_type;
typedef test_type::result_type result_type;
typedef test_type::param_type param_type;
}

View File

@ -4,7 +4,7 @@
//
// 2008-12-03 Edward M. Smith-Rowland <3dw4rd@verizon.net>
//
// Copyright (C) 2008, 2009 Free Software Foundation, Inc.
// Copyright (C) 2008, 2009, 2012 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
@ -32,4 +32,5 @@ test01()
typedef std::piecewise_constant_distribution<> test_type;
typedef test_type::result_type result_type;
typedef test_type::param_type param_type;
}

View File

@ -4,7 +4,7 @@
//
// 2008-12-03 Edward M. Smith-Rowland <3dw4rd@verizon.net>
//
// Copyright (C) 2008, 2009 Free Software Foundation, Inc.
// Copyright (C) 2008, 2009, 2012 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
@ -32,4 +32,5 @@ test01()
typedef std::piecewise_linear_distribution<> test_type;
typedef test_type::result_type result_type;
typedef test_type::param_type param_type;
}

View File

@ -4,7 +4,7 @@
//
// 2008-11-24 Edward M. Smith-Rowland <3dw4rd@verizon.net>
//
// Copyright (C) 2008, 2009 Free Software Foundation, Inc.
// Copyright (C) 2008, 2009, 2012 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
@ -32,4 +32,5 @@ test01()
typedef std::poisson_distribution<int> test_type;
typedef test_type::result_type result_type;
typedef test_type::param_type param_type;
}

View File

@ -4,7 +4,7 @@
//
// 2008-11-24 Edward M. Smith-Rowland <3dw4rd@verizon.net>
//
// Copyright (C) 2008, 2009 Free Software Foundation, Inc.
// Copyright (C) 2008, 2009, 2012 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
@ -32,4 +32,5 @@ test01()
typedef std::student_t_distribution<double> test_type;
typedef test_type::result_type result_type;
typedef test_type::param_type param_type;
}

View File

@ -4,7 +4,7 @@
//
// 2008-11-24 Edward M. Smith-Rowland <3dw4rd@verizon.net>
//
// Copyright (C) 2008, 2009 Free Software Foundation, Inc.
// Copyright (C) 2008, 2009, 2012 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
@ -32,4 +32,5 @@ test01()
typedef std::uniform_int_distribution<int> test_type;
typedef test_type::result_type result_type;
typedef test_type::param_type param_type;
}

View File

@ -4,7 +4,7 @@
//
// 2008-11-24 Edward M. Smith-Rowland <3dw4rd@verizon.net>
//
// Copyright (C) 2008, 2009 Free Software Foundation, Inc.
// Copyright (C) 2008, 2009, 2012 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
@ -32,4 +32,5 @@ test01()
typedef std::uniform_real_distribution<double> test_type;
typedef test_type::result_type result_type;
typedef test_type::param_type param_type;
}

View File

@ -4,7 +4,7 @@
//
// 2008-11-24 Edward M. Smith-Rowland <3dw4rd@verizon.net>
//
// Copyright (C) 2008, 2009 Free Software Foundation, Inc.
// Copyright (C) 2008, 2009, 2012 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
@ -32,4 +32,5 @@ test01()
typedef std::weibull_distribution<double> test_type;
typedef test_type::result_type result_type;
typedef test_type::param_type param_type;
}