Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

testing negative exponentials #53

Closed
MARTIMM opened this issue Feb 17, 2015 · 2 comments
Closed

testing negative exponentials #53

MARTIMM opened this issue Feb 17, 2015 · 2 comments

Comments

@MARTIMM
Copy link

MARTIMM commented Feb 17, 2015

Reading through s02 section Exponentials, I found a number representation which I tried in perl6.
Result is

> :10<1*2**-64>
===SORRY!=== Error while compiling <unknown file>
Malformed radix number
at <unknown file>:1
------> :10<1*2**⏏-64>
    expecting any of:
        number in radix notation

It seems not to accept the minus sign. It will accept positive numbers.
This is not tested in 'S02-literals/radix.t lines 183–192'.

Version of perl;
This is perl6 version 2015.01-77-gd320f00 built on MoarVM version 2015.01-21-g4ee4925

@Mouq
Copy link
Contributor

Mouq commented Feb 17, 2015

Thanks, @MARTIMM, I just submitted this to the Rakudo bug tracker as #123862

@zoffixznet
Copy link
Contributor

This has now been added to the test (albeit fudged): https://github.com/perl6/roast/blob/450b91981a31d72edb64f4b0d0e3941a679a9481/S02-literals/radix.t#L134-L136

I think this Issue can be closed now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants