valarray_subset_assignment.cc: Fix typos.

2004-03-10  Paolo Carlini  <pcarlini@suse.de>

	* testsuite/26_numerics/valarray_subset_assignment.cc: Fix typos.

From-SVN: r79253
This commit is contained in:
Paolo Carlini 2004-03-10 13:40:17 +00:00 committed by Paolo Carlini
parent 5f1b206864
commit f69535d2b7
2 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2004-03-10 Paolo Carlini <pcarlini@suse.de>
* testsuite/26_numerics/valarray_subset_assignment.cc: Fix typos.
2004-03-10 Paul Kienzle <pkienzle@nist.gov>
Paolo Carlini <pcarlini@suse.de>

View File

@ -33,7 +33,7 @@
#include <valarray>
#include <testsuite_hooks.h>
bool check_array(std::valarray<double>& a, double[] b)
bool check_array(std::valarray<double>& a, double b[])
{
for (int i=0; i < a.size(); i++)
if (a[i] != b[i]) return false;
@ -65,7 +65,7 @@ int main()
std::gslice gslc(1, val_size, val_stride);
val_c[gslc] = val_d1[gslc];
double ans2[10] = {10, 1, 2, 3 10, 5, 6, 7, 10, 10};
double ans2[10] = {10, 1, 2, 3, 10, 5, 6, 7, 10, 10};
VERIFY(check_array(val_c, ans2));
std::valarray<bool> val_b(false, 10);