Conversions: Changed "=" to act like "to" in implicit conversions (#4553)
parent
4721fc628d
commit
e6b1b62739
|
@ -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;
|
||||
|
|
|
@ -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',
|
||||
|
|
Loading…
Reference in New Issue