Advanced-Config
view release on metacpan or search on metacpan
t/config/13-alt-get-tests.cfg view on Meta::CPAN
#
# This config file is used for testing the various "get" type functions.
# It's validated by t/13-alt-get-tests.t
#
# Most lists, used a space separated split. But there were other
# separators used!
# -------------------------------------------------------------------------
# This config file uses format: tag_seq_answer = value
# to validate things against instead of hard coding answers in the test
# program.
# -------------------------------------------------------------------------
# ----------------------------------------------------------------------
# Used to test get_value & get_list & get_hash ...
# ----------------------------------------------------------------------
one_value = "Hello"
two_values = "Hello World!"
three_values = "One, Two, Three"
four_values = "Good Bye Cruel World!"
# ----------------------------------------------------------------------
# Used to test the get_numeric & get_list_numeric() functions ...
# ----------------------------------------------------------------------
int_one = 1
int_two = 2 3
int_three = 5|9|11
int_four = 5 2 12 9 22 55 -1 -4
real_one = 1.0
real_two = 2.2 3.3
real_three = 5.1? 9? 11.1
real_four = 5.1 2 12.1 9 22.5 55.5 -0.4 -5.5
real_1 = 0.1 # Good
real_2 = .1 # Good - no longer needs a decimal part ...
real_3 = 1. # Good - no longer needs a fraction part ...
realb_4 = x.1 # BAD
realb_5 = 1.x # BAD
realb_6 = . # BAD - don't allow just a decimal point ...
# Failure cases ...
bad_real_one = one
bad_real_two = 1 two
bad_real_three = 1, two, 3.6
bad_real_four = 1.3 two 3.4 four
# ----------------------------------------------------------------------
# Used to test the get_boolean() & get_list_boolean() functions ...
# Format used for tag names: boolean_<test #>_<answer>
# ----------------------------------------------------------------------
boolean_00_0 = # has no value on purpose!
boolean_01_0 = False
boolean_01_1 = True
boolean_02_0 = no
boolean_02_1 = yes
boolean_03_0 = F
boolean_03_1 = t
boolean_04_0 = n
boolean_04_1 = Y
boolean_05_0 = 0
boolean_05_1 = 99
boolean_06_0 = 0
boolean_06_1 = -8
boolean_07_0 = -0
boolean_07_1 = +8
( run in 0.946 second using v1.01-cache-2.11-cpan-39bf76dae61 )