Actually test StringLikeTrait

This commit is contained in:
Daniel Aarno 2012-08-15 23:47:54 +02:00
parent 0272fa4739
commit 719204b51f
4 changed files with 13 additions and 2 deletions

View File

@ -31,7 +31,7 @@ struct Vect : public TCLAP::StringLikeTrait {
std::ostream& print(std::ostream &os) const
{
std::copy(v, v + LEN, std::ostream_iterator<T>(os, " "));
std::copy(v, v + LEN, std::ostream_iterator<T>(os, ", "));
return os;
}

View File

@ -6,7 +6,7 @@ cd $DIR
let "suc = 0"
let "fail = 0"
NUMTEST=82
NUMTEST=83
for (( tno = 1 ; $tno <= $NUMTEST ; tno = $tno + 1 )); do
./testCheck.sh $tno

1
tests/test83.out Normal file
View File

@ -0,0 +1 @@
3.2, -47.11, 0,

10
tests/test83.sh Normal file
View File

@ -0,0 +1,10 @@
#!/bin/sh
../examples/test14 -v "3.2 -47.11 0" > tmp.out 2>&1
if cmp -s tmp.out $srcdir/test83.out; then
exit 0
else
exit 1
fi