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

use Test; is(Mu, Mu); done-testing; #4583

Closed
p6rt opened this issue Sep 23, 2015 · 4 comments
Closed

use Test; is(Mu, Mu); done-testing; #4583

p6rt opened this issue Sep 23, 2015 · 4 comments
Labels
LTA Less Than Awesome; typically an error message that could be better

Comments

@p6rt
Copy link

p6rt commented Sep 23, 2015

Migrated from rt.perl.org#126149 (status was 'resolved')

Searchable as RT126149$

@p6rt
Copy link
Author

p6rt commented Sep 23, 2015

From tokuhirom@gmail.com

This code throws exception.
`use Test; is(Mu, Mu); done-testing;`

Output​:
Cannot call infix​:<===>(Mu, Mu); none of these signatures match​:
  ($?)
  ($a, $b)
  (Int​:D \a, Int​:D \b)
  (int $a, int $b)
  (Num​:D \a, Num​:D \b)
  (Num $ where { ... }, Num $ where { ... })
  (num $a, num $b --> Bool)
  (Str​:D \a, Str​:D \b --> Bool)
  (str $a, str $b --> Bool)
  (Rational​:D \a, Rational​:D \b --> Bool)
  (Complex​:D \a, Complex​:D \b --> Bool)
  in sub is at lib/Test.pm​:119
  in block <unit> at <unknown file>​:1

But I guess it shouldn't throw exception(or show more descriptive message).

This is perl6 version 2015.09-55-gc189c7e built on MoarVM version 2015.09-4-g002edea

@p6rt
Copy link
Author

p6rt commented Aug 23, 2016

@coke - Status changed from 'new' to 'open'

@p6rt
Copy link
Author

p6rt commented Jan 1, 2017

From @zoffixznet

On Wed, 23 Sep 2015 15​:44​:59 -0700, tokuhirom wrote​:

This code throws exception.
`use Test; is(Mu, Mu); done-testing;`

Output​:
Cannot call infix​:<===>(Mu, Mu); none of these signatures match​:
($?)
($a, $b)
(Int​:D \a, Int​:D \b)
(int $a, int $b)
(Num​:D \a, Num​:D \b)
(Num $ where { ... }, Num $ where { ... })
(num $a, num $b --> Bool)
(Str​:D \a, Str​:D \b --> Bool)
(str $a, str $b --> Bool)
(Rational​:D \a, Rational​:D \b --> Bool)
(Complex​:D \a, Complex​:D \b --> Bool)
in sub is at lib/Test.pm​:119
in block <unit> at <unknown file>​:1

But I guess it shouldn't throw exception(or show more descriptive
message).

This is perl6 version 2015.09-55-gc189c7e built on MoarVM version
2015.09-4-g002edea

Thank you for the report. This is now fixed.

Fix​: rakudo/rakudo@268dc92e2a
Tests​: rakudo/rakudo@268dc92e2a

@p6rt
Copy link
Author

p6rt commented Jan 1, 2017

@zoffixznet - Status changed from 'open' to 'resolved'

@p6rt p6rt closed this as completed Jan 1, 2017
@p6rt p6rt added the LTA Less Than Awesome; typically an error message that could be better label Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
LTA Less Than Awesome; typically an error message that could be better
Projects
None yet
Development

No branches or pull requests

1 participant