about summary refs log tree commit diff stats
path: root/002test.cc
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-05-23 12:30:58 -0700
committerKartik K. Agaram <vc@akkartik.com>2015-05-23 12:35:05 -0700
commit047296d811b062477715e3435e1b49ae63d54501 (patch)
treee271c65abd0adafd43f75ad766834e238c7eb89b /002test.cc
parenta95c44f6981946d87e05d0929c0dd3a4894e953e (diff)
downloadmu-047296d811b062477715e3435e1b49ae63d54501.tar.gz
1434 - support all unicode spaces
Diffstat (limited to '002test.cc')
-rw-r--r--002test.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/002test.cc b/002test.cc
index 76bf02cf..ea75db82 100644
--- a/002test.cc
+++ b/002test.cc
@@ -88,6 +88,7 @@ long long int to_integer(string n) {
   char* end = NULL;
   // safe because string.c_str() is guaranteed to be null-terminated
   long long int result = strtoll(n.c_str(), &end, /*any base*/0);
+  if (*end != '\0') raise << "tried to convert " << n << " to number\n";
   assert(*end == '\0');
   return result;
 }