Fix doxygen url.
[command.git] / tests / command / understand_unsigned_int_option.test
1 #!/bin/sh
2
3 for t in 0 1 2 3 4 5 10 100 200 300 21231; do
4     TEST=$($srcdir/command/option_test_command unsigned-int=$t)
5     if [ ! "$TEST" = "unsigned int: $t" ]; then
6         echo "Command should understand Option<unsigned int>. Expecting output: 'unsigned int: $t', got: '$TEST', from: '$t'. Program exited with $? code."
7         return 1;
8     fi
9 done
10
11 for t in a b c d e example_string f3f12; do
12     TEST=$($srcdir/command/option_test_command unsigned-int=$t)
13     if [ ! "$?" = "1" ]; then
14         echo "Command should not understand Option<unsigned int> if value is not unsigned integer only. Got: '$TEST', from: '$t'. Program exited with $? code."
15         return 1;
16     fi
17 done
18
19 echo "Command understand Option<int> correctly."
20
21 return 0;