Conversions: Changed "=" to act like "to" in implicit conversions (#4553)

master
tossj 2017-12-18 11:14:49 -05:00 committed by Zaahir Moolla
parent 4721fc628d
commit e6b1b62739
2 changed files with 9 additions and 1 deletions

View File

@ -281,7 +281,7 @@ handle query => sub {
|| ( "" eq $left_num
&& "" eq $right_num
&& $question !~ qr/convert/i
&& $connecting_word !~ qr/to/i ))
&& $connecting_word !~ qr/to|=/i ))
{
$factor = $right_num;
@matches = reverse @matches;

View File

@ -2194,6 +2194,14 @@ ddg_goodie_test(
physical_quantity => 'volume'
})
),
'oz = ml' => test_zci(
'', structured_answer => make_answer({
raw_input => '1',
from_unit => 'impfluidounce',
to_unit => 'millilitre',
physical_quantity => 'volume'
})
),
'miles to nautical' => test_zci(
'', structured_answer => make_answer({
raw_input => '1',