aboutsummaryrefslogtreecommitdiff
path: root/tests/test/script/runner/driver.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test/script/runner/driver.cxx')
-rw-r--r--tests/test/script/runner/driver.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/test/script/runner/driver.cxx b/tests/test/script/runner/driver.cxx
index 9eb36a0..fdada73 100644
--- a/tests/test/script/runner/driver.cxx
+++ b/tests/test/script/runner/driver.cxx
@@ -34,7 +34,10 @@ main (int argc, char* argv[])
{
try
{
- return stoi (s);
+ size_t n;
+ int r (stoi (s, &n));
+ assert (n == s.size ());
+ return r;
}
catch (const exception&)
{