FAILED
Test file Test results Time %
t/01-simple.t
  • 1..69
  • not ok 1 - create object
  • ok 2 - call "ask_yn( 'da1?', Bool::True )" answer "yai" => Bool::True expected Bool::True
  • ok 3 - call "ask_yn( 'da1?', Bool::True )" => "da1? [Y/n] " expected "da1? [Y/n] "
  • ok 4 - call "ask_yn( 'da2?', Bool::False )" answer "yai" => Bool::True expected Bool::True
  • ok 5 - call "ask_yn( 'da2?', Bool::False )" => "da2? [y/N] " expected "da2? [y/N] "
  • ok 6 - call "ask_yn( 'da3?', undef )" answer "yai" => Bool::True expected Bool::True
  • ok 7 - call "ask_yn( 'da3?', undef )" => "da3? [y/n] " expected "da3? [y/n] "
  • ok 8 - call "ask_yn( 'da4?' )" answer "yai" => Bool::True expected Bool::True
  • ok 9 - call "ask_yn( 'da4?' )" => "da4? [y/n] " expected "da4? [y/n] "
  • ok 10 - call "ask_yn( 'db1?', Bool::True )" answer "Y" => Bool::True expected Bool::True
  • ok 11 - call "ask_yn( 'db1?', Bool::True )" => "db1? [Y/n] " expected "db1? [Y/n] "
  • ok 12 - call "ask_yn( 'db2?', Bool::False )" answer "Y" => Bool::True expected Bool::True
  • ok 13 - call "ask_yn( 'db2?', Bool::False )" => "db2? [y/N] " expected "db2? [y/N] "
  • ok 14 - call "ask_yn( 'db3?', undef )" answer "Y" => Bool::True expected Bool::True
  • ok 15 - call "ask_yn( 'db3?', undef )" => "db3? [y/n] " expected "db3? [y/n] "
  • ok 16 - call "ask_yn( 'db4?' )" answer "Y" => Bool::True expected Bool::True
  • ok 17 - call "ask_yn( 'db4?' )" => "db4? [y/n] " expected "db4? [y/n] "
  • ok 18 - call "ask_yn( 'da5?', Bool::True )" answer "nai" => Bool::False expected Bool::False
  • ok 19 - call "ask_yn( 'da5?', Bool::True )" => "da5? [Y/n] " expected "da5? [Y/n] "
  • ok 20 - call "ask_yn( 'da6?', Bool::False )" answer "nai" => Bool::False expected Bool::False
  • ok 21 - call "ask_yn( 'da6?', Bool::False )" => "da6? [y/N] " expected "da6? [y/N] "
  • ok 22 - call "ask_yn( 'da7?', undef )" answer "nai" => Bool::False expected Bool::False
  • ok 23 - call "ask_yn( 'da7?', undef )" => "da7? [y/n] " expected "da7? [y/n] "
  • ok 24 - call "ask_yn( 'da8?' )" answer "nai" => Bool::False expected Bool::False
  • ok 25 - call "ask_yn( 'da8?' )" => "da8? [y/n] " expected "da8? [y/n] "
  • ok 26 - call "ask_yn( 'db5?', Bool::True )" answer "N" => Bool::False expected Bool::False
  • ok 27 - call "ask_yn( 'db5?', Bool::True )" => "db5? [Y/n] " expected "db5? [Y/n] "
  • ok 28 - call "ask_yn( 'db6?', Bool::False )" answer "N" => Bool::False expected Bool::False
  • ok 29 - call "ask_yn( 'db6?', Bool::False )" => "db6? [y/N] " expected "db6? [y/N] "
  • ok 30 - call "ask_yn( 'db7?', undef )" answer "N" => Bool::False expected Bool::False
  • ok 31 - call "ask_yn( 'db7?', undef )" => "db7? [y/n] " expected "db7? [y/n] "
  • ok 32 - call "ask_yn( 'db8?' )" answer "N" => Bool::False expected Bool::False
  • ok 33 - call "ask_yn( 'db8?' )" => "db8? [y/n] " expected "db8? [y/n] "
  • ok 34 - call "ask_yn( 'da9?', Bool::True )" answer "" => Bool::True expected Bool::True
  • ok 35 - call "ask_yn( 'da9?', Bool::True )" => "da9? [Y/n] " expected "da9? [Y/n] "
  • ok 36 - call "ask_yn( 'd10?', Bool::False )" answer "" => Bool::False expected Bool::False
  • ok 37 - call "ask_yn( 'd10?', Bool::False )" => "d10? [y/N] " expected "d10? [y/N] "
  • ok 38 - call "ask_yn( 'qa9?', undef )" answer "" => Bool expected Bool
  • ok 39 - call "ask_yn( 'qa9?', undef )" => "Please enter yes or no" expected "Please enter yes or no"
  • ok 40 - call "ask_yn( 'q10?' )" answer "" => Bool expected Bool
  • ok 41 - call "ask_yn( 'q10?' )" => "Please enter yes or no" expected "Please enter yes or no"
  • ok 42 - call "ask_yn( 'wa9?', Bool::True )" answer "Daa" => Bool expected Bool
  • ok 43 - call "ask_yn( 'wa9?', Bool::True )" => "Please enter yes or no" expected "Please enter yes or no"
  • ok 44 - call "ask_yn( 'w10?', Bool::False )" answer "Daa" => Bool expected Bool
  • ok 45 - call "ask_yn( 'w10?', Bool::False )" => "Please enter yes or no" expected "Please enter yes or no"
  • ok 46 - call "ask_yn( 'wa9?', undef )" answer "Daa" => Bool expected Bool
  • ok 47 - call "ask_yn( 'wa9?', undef )" => "Please enter yes or no" expected "Please enter yes or no"
  • ok 48 - call "ask_yn( 'w10?' )" answer "Daa" => Bool expected Bool
  • ok 49 - call "ask_yn( 'w10?' )" => "Please enter yes or no" expected "Please enter yes or no"
  • ok 50 - call "ask_num( 'n1?', 10.01 )" answer "42.42" => 42.42 expected 42.42
  • ok 51 - call "ask_num( 'n1?', 10.01 )" => "n1? [10.01] " expected "n1? [10.01] "
  • ok 52 - call "ask_num( 'n2?', 20.02 )" answer "24.24" => 24.24 expected 24.24
  • ok 53 - call "ask_num( 'n2?', 20.02 )" => "n2? [20.02] " expected "n2? [20.02] "
  • ok 54 - call "ask_num( 'n3?' )" answer "11.11" => 11.11 expected 11.11
  • ok 55 - call "ask_num( 'n3?' )" => "n3? [Num] " expected "n3? [Num] "
  • ok 56 - call "ask_int( 'i1?', 10 )" answer "42" => 42 expected 42
  • ok 57 - call "ask_int( 'i1?', 10 )" => "i1? [10] " expected "i1? [10] "
  • ok 58 - call "ask_int( 'i2?', 20 )" answer "24" => 24 expected 24
  • ok 59 - call "ask_int( 'i2?', 20 )" => "i2? [20] " expected "i2? [20] "
  • ok 60 - call "ask_int( 'i3?' )" answer "11" => 11 expected 11
  • ok 61 - call "ask_int( 'i3?' )" => "i3? [Int] " expected "i3? [Int] "
  • ok 62 - call "ask_num( 'nA?', 10.01 )" answer "aaa" => Num expected Num
  • ok 63 - call "ask_num( 'nA?', 10.01 )" => "Please enter a valid number" expected "Please enter a valid number"
  • ok 64 - call "ask_num( 'nB?' )" answer "" => Num expected Num
  • ok 65 - call "ask_num( 'nB?' )" => "Please enter a valid number" expected "Please enter a valid number"
  • ok 66 - call "ask_int( 'iA?', 10 )" answer "aaa" => Int expected Int
  • ok 67 - call "ask_int( 'iA?', 10 )" => "Please enter a valid integer" expected "Please enter a valid integer"
  • ok 68 - call "ask_int( 'iB?' )" answer "" => Int expected Int
  • ok 69 - call "ask_int( 'iB?' )" => "Please enter a valid integer" expected "Please enter a valid integer"
  • # Looks like you failed 1 tests of 69
23.35s 98.6%
1 files 69 tests, 68 ok, 1 failed, 0 todo, 0 skipped, 0 parse errors
exit status: 0, wait status: 0
elapsed time: 23 wallclock secs ( 0.07 usr 0.02 sys + 13.59 cusr 0.31 csys = 13.99 CPU)
23.35s 98.6%