about summary refs log tree commit diff stats
path: root/002test.cc
diff options
context:
space:
mode:
Diffstat (limited to '002test.cc')
-rw-r--r--002test.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/002test.cc b/002test.cc
index fa6c50a2..12c68df9 100644
--- a/002test.cc
+++ b/002test.cc
@@ -80,11 +80,11 @@ void run_test(index_t i) {
   if (Passed) cerr << ".";
 }
 
-bool is_number(const string& s) {
-  return s.find_first_not_of("0123456789-.") == string::npos;
+bool is_integer(const string& s) {
+  return s.find_first_not_of("0123456789-") == string::npos;
 }
 
-long long int to_number(string n) {
+long long int to_integer(string n) {
   char* end = NULL;
   long long int result = strtoll(n.c_str(), &end, /*any base*/0);
   assert(*end == '\0');