Don't trigger log or lg without brackets (as these don't work) (#4249)
* Add sed command example * Move to file section * Don't trigger log without brackets. Quick fix for issue #4246 * Remove test that uses log(10) * Update Calculator.t * dont trigger ln without brackets either * remove ln and log without bracket tests * previously removed wrong test bring it backmaster
parent
9a401b5caf
commit
db93ca9b76
|
@ -150,7 +150,7 @@ handle query_nowhitespace => sub {
|
|||
|
||||
# Grab expression.
|
||||
my $tmp_expr = spacing($query, 1);
|
||||
return if ($tmp_expr eq $query) && ($query !~ /\de|ln|log|cos|tan|sin/i); # If it didn't get spaced out, there are no operations to be done.
|
||||
return if ($tmp_expr eq $query) && ($query !~ /\de|cos|tan|sin/i); # If it didn't get spaced out, there are no operations to be done.
|
||||
|
||||
# First replace named operations with their computable equivalents.
|
||||
while (my ($name, $operation) = each %named_operations) {
|
||||
|
|
|
@ -328,12 +328,6 @@ ddg_goodie_test(
|
|||
'log(10 * 2)' => build_test(
|
||||
'log(10 * 2)'
|
||||
),
|
||||
'log 88' => build_test(
|
||||
'log88'
|
||||
),
|
||||
'ln 6' => build_test(
|
||||
'ln6'
|
||||
),
|
||||
'1 + √25 =' => build_test(
|
||||
'1 + √25'
|
||||
),
|
||||
|
|
Loading…
Reference in New Issue