Conversions: 0 x in Kelvin; 0 K in K fails as it's not 0, 0 R in K doesn't trigger correctly

master
Rob Emery 2015-11-01 20:40:10 +00:00
parent 305dba33ff
commit dad34b11db
1 changed files with 26 additions and 22 deletions

View File

@ -1242,38 +1242,42 @@ ddg_goodie_test(
#),
'-7 kelvin in kelvin' => undef,
'-7 rankine in kelvin' => undef,
#'0 fahrenheit in kelvin' => test_zci(
# '0 fahrenheit = 0 kelvin',
# structured_answer => {
# input => ['0 fahrenheit'],
# operation => 'Convert',
# result => '0 kelvin'
# }
#),
#'0 celsius in kelvin' => test_zci(
# '0 celsius = 0 kelvin',
# structured_answer => {
# input => ['0 celsius'],
# operation => 'Convert',
# result => '0 kelvin'
# }
#),
'0 fahrenheit in kelvin' => test_zci(
'0 °F = 255.372 K',
structured_answer => {
input => ['0 °F'],
operation => 'Convert',
result => '255.372 K'
}
),
'0 celsius in kelvin' => test_zci(
'0 °C = 273.150 K',
structured_answer => {
input => ['0 °C'],
operation => 'Convert',
result => '273.150 K'
}
),
#FAILING:
#'0 kelvin in kelvin' => test_zci(
# '0 kelvin = 0 kelvin',
# '0 K = 0 K',
# structured_answer => {
# input => ['0 kelvin'],
# input => ['0 K'],
# operation => 'Convert',
# result => '0 kelvin'
# result => '0 K'
# }
#),
# doesn't trigger:
#'0 rankine in kelvin' => test_zci(
# '0 rankine = 0 kelvin',
# '0 rankine = 0 K',
# structured_answer => {
# input => ['0 rankine'],
# input => ['0 °R'],
# operation => 'Convert',
# result => '0 kelvin'
# result => '0 K'
# }
#),
#'10 fahrenheit in rankine' => test_zci(
# '10 fahrenheit = 0 rankine',
# structured_answer => {