mirror of
https://github.com/cuberite/TCLAP.git
synced 2025-08-04 02:06:29 -04:00
Actually test StringLikeTrait
This commit is contained in:
parent
0272fa4739
commit
719204b51f
@ -31,7 +31,7 @@ struct Vect : public TCLAP::StringLikeTrait {
|
|||||||
|
|
||||||
std::ostream& print(std::ostream &os) const
|
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;
|
return os;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@ cd $DIR
|
|||||||
|
|
||||||
let "suc = 0"
|
let "suc = 0"
|
||||||
let "fail = 0"
|
let "fail = 0"
|
||||||
NUMTEST=82
|
NUMTEST=83
|
||||||
|
|
||||||
for (( tno = 1 ; $tno <= $NUMTEST ; tno = $tno + 1 )); do
|
for (( tno = 1 ; $tno <= $NUMTEST ; tno = $tno + 1 )); do
|
||||||
./testCheck.sh $tno
|
./testCheck.sh $tno
|
||||||
|
1
tests/test83.out
Normal file
1
tests/test83.out
Normal file
@ -0,0 +1 @@
|
|||||||
|
3.2, -47.11, 0,
|
10
tests/test83.sh
Normal file
10
tests/test83.sh
Normal 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
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user