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
279a82494f
commit
3816281229
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
|
@ -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
1
tests/test86.out
Normal file
@ -0,0 +1 @@
|
||||
3.2, -47.11, 0,
|
9
tests/test86.sh
Normal file
9
tests/test86.sh
Normal 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
|
Loading…
x
Reference in New Issue
Block a user