Updated regex examples and Jamfiles so that they are run as tests.

[SVN r12149]
This commit is contained in:
John Maddock
2001-12-26 11:21:24 +00:00
parent 0cda8c8a2e
commit b2dd7877da
6 changed files with 93 additions and 37 deletions

View File

@ -29,7 +29,10 @@ int main(int argc, char* argv[])
{
try{
std::string input;
std::cin >> input;
if(argc > 1)
input = argv[1];
else
std::cin >> input;
if(is_possible_card_number(input))
{
std::cout << "Matched OK..." << std::endl;