aboutsummaryrefslogtreecommitdiff
path: root/tests/standard-version
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2018-07-25 20:11:47 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2018-07-25 20:22:33 +0300
commit84f6ebab62a9f2553ae454d67861b0b142470d0b (patch)
tree63d41dc772ebcaf6f1821de3b155cadd90d309dc /tests/standard-version
parent35e9273090109e5fb87fe65e3f1631ff6fc5fb3a (diff)
Move bpkg::package_name class to butl::project_name
Diffstat (limited to 'tests/standard-version')
-rw-r--r--tests/standard-version/buildfile2
-rw-r--r--tests/standard-version/driver.cxx10
2 files changed, 6 insertions, 6 deletions
diff --git a/tests/standard-version/buildfile b/tests/standard-version/buildfile
index 8e8ded6..7ae054e 100644
--- a/tests/standard-version/buildfile
+++ b/tests/standard-version/buildfile
@@ -1,4 +1,4 @@
-# file : tests/tab-parser/buildfile
+# file : tests/standard-version/buildfile
# copyright : Copyright (c) 2014-2018 Code Synthesis Ltd
# license : MIT; see accompanying LICENSE file
diff --git a/tests/standard-version/driver.cxx b/tests/standard-version/driver.cxx
index 3bc1d31..7ad5b00 100644
--- a/tests/standard-version/driver.cxx
+++ b/tests/standard-version/driver.cxx
@@ -18,7 +18,7 @@
import std.core;
import std.io;
#endif
-import butl.utility; // operator<<(ostream,exception)
+import butl.utility; // operator<<(ostream,exception), eof()
import butl.standard_version;
#else
#include <libbutl/utility.mxx>
@@ -124,11 +124,11 @@ version (const string& s,
// -a output 'y' for alpha-version, 'n' otherwise
// -b output 'y' for beta-version, 'n' otherwise
// -c output 0 if versions are equal, -1 if the first one is less, 1 otherwise
-// -r create version constraints from STDIN lines, and print them to STDOUT
+// -r create version constraints from stdin lines, and print them to stdout
// -s output 'y' if version satisfies constraint, 'n' otherwise
//
-// If no options are specified, then create versions from STDIN lines, and
-// print them to STDOUT.
+// If no options are specified, then create versions from stdin lines, and
+// print them to stdout.
//
int
main (int argc, char* argv[])
@@ -186,7 +186,7 @@ try
}
string s;
- while (getline (cin, s))
+ while (!eof (getline (cin, s)))
cout << (s.empty () ? standard_version () : version (s)) << endl;
return 0;