aboutsummaryrefslogtreecommitdiff
path: root/tests/standard-version/driver.cxx
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/driver.cxx
parent35e9273090109e5fb87fe65e3f1631ff6fc5fb3a (diff)
Move bpkg::package_name class to butl::project_name
Diffstat (limited to 'tests/standard-version/driver.cxx')
-rw-r--r--tests/standard-version/driver.cxx10
1 files changed, 5 insertions, 5 deletions
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;