|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r67773 - trunk/libs/program_options/test
From: ghost_at_[hidden]
Date: 2011-01-08 05:49:07
Author: vladimir_prus
Date: 2011-01-08 05:49:06 EST (Sat, 08 Jan 2011)
New Revision: 67773
URL: http://svn.boost.org/trac/boost/changeset/67773
Log:
Add more testscases. Addresses #4469.
Text files modified:
trunk/libs/program_options/test/cmdline_test.cpp | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
Modified: trunk/libs/program_options/test/cmdline_test.cpp
==============================================================================
--- trunk/libs/program_options/test/cmdline_test.cpp (original)
+++ trunk/libs/program_options/test/cmdline_test.cpp 2011-01-08 05:49:06 EST (Sat, 08 Jan 2011)
@@ -378,6 +378,15 @@
{0, 0, 0}
};
test_cmdline("opt123 opt56 foo,f=", style, test_cases1);
+
+ test_case test_cases2[] = {
+ {"--fname file --fname2 file2", s_success, "fname: file fname2: file2"},
+ {"--fnam file --fnam file2", s_ambiguous_option, ""},
+ {"--fnam file --fname2 file2", s_ambiguous_option, ""},
+ {"--fname2 file2 --fnam file", s_ambiguous_option, ""},
+ {0, 0, 0}
+ };
+ test_cmdline("fname fname2", style, test_cases2);
}
void test_arguments()
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk