Fix unit test failure in math.parser
parent
f1038cee97
commit
cb6f59ff5b
|
@ -50,7 +50,9 @@ SYMBOL: radix
|
|||
SYMBOL: negative?
|
||||
|
||||
: string>natural ( seq radix -- n/f )
|
||||
[ [ digit> ] dip (digits>integer) ] each-digit ; inline
|
||||
over empty? [ 2drop f ] [
|
||||
[ [ digit> ] dip (digits>integer) ] each-digit
|
||||
] if ; inline
|
||||
|
||||
: sign ( -- str ) negative? get "-" "+" ? ;
|
||||
|
||||
|
|
Loading…
Reference in New Issue