Actually test StringLikeTrait

This commit is contained in:
Daniel Aarno 2012-08-15 23:47:54 +02:00
parent 279a82494f
commit 3816281229
5 changed files with 18 additions and 4 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

@ -83,7 +83,9 @@ TESTS = test1.sh \
test81.sh \
test82.sh \
test83.sh \
test84.sh
test84.sh \
test85.sh \
test86.sh
EXTRA_DIST = $(TESTS) \
test1.out \
@ -169,6 +171,8 @@ EXTRA_DIST = $(TESTS) \
test81.out \
test82.out \
test83.out \
test84.out
test84.out \
test85.out \
test86.out
CLEANFILES = tmp.out

View File

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

1
tests/test86.out Normal file
View File

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

9
tests/test86.sh Normal file
View File

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