48 type(map_type) :: options_database
49 class(*),
pointer :: raw_data
51 call add_specific_option_key_value_pair(integer_type, options_database,
"--test1=9542")
52 call add_specific_option_key_value_pair(integer_type, options_database,
"--test2=-1234")
53 call add_specific_option_key_value_pair(integer_type, options_database,
"--test3=+82")
54 call add_specific_option_key_value_pair(integer_type, options_database,
"--test4=0")
56 raw_data=>c_get(options_database,
"test1")
57 call assert_equals(9542, conv_to_integer(raw_data, .false.),
"Simple integer value added")
58 raw_data=>c_get(options_database,
"test2")
59 call assert_equals(-1234, conv_to_integer(raw_data, .false.),
"Negative integer value added")
60 raw_data=>c_get(options_database,
"test3")
61 call assert_equals(82, conv_to_integer(raw_data, .false.),
"Positive integer value added")
62 raw_data=>c_get(options_database,
"test4")
63 call assert_equals(0, conv_to_integer(raw_data, .false.),
"Zero integer value added")