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

is-deeply cannot detect item context #5906

Closed
p6rt opened this issue Dec 24, 2016 · 3 comments
Closed

is-deeply cannot detect item context #5906

p6rt opened this issue Dec 24, 2016 · 3 comments
Labels

Comments

@p6rt
Copy link

p6rt commented Dec 24, 2016

Migrated from rt.perl.org#130395 (status was 'rejected')

Searchable as RT130395$

@p6rt
Copy link
Author

p6rt commented Dec 24, 2016

From @titsuki

See the following results​:

$ perl6 -MTest -e 'my @​a = 1,2; dd @​a; dd @​a.item;'
Array @​a = [1, 2]
$[1, 2]

$ perl6 -MTest -e 'my @​a = 1,2; is-deeply @​a, @​a.item'
ok 1 - 

I think is-deeply should return "not ok" in this case.

Perl 6 version is​:
$ perl6 --version
This is Rakudo version 2016.12-14-g9120ace built on MoarVM version 2016.12
implementing Perl 6.c.

@p6rt
Copy link
Author

p6rt commented Dec 24, 2016

From @titsuki

Sorry, I found that it's not a is-deeply's bug.

$ perl6 -e 'my @​a = 1,2; say @​a.item eqv @​a;'
True

On Fri, 23 Dec 2016 20​:27​:10 -0800, cookbook_000@​yahoo.co.jp wrote​:

See the following results​:

$ perl6 -MTest -e 'my @​a = 1,2; dd @​a; dd @​a.item;'
Array @​a = [1, 2]
$[1, 2]

$ perl6 -MTest -e 'my @​a = 1,2; is-deeply @​a, @​a.item'
ok 1 - 

I think is-deeply should return "not ok" in this case.

Perl 6 version is​:
$ perl6 --version
This is Rakudo version 2016.12-14-g9120ace built on MoarVM version 2016.12
implementing Perl 6.c.

@p6rt
Copy link
Author

p6rt commented Dec 24, 2016

@titsuki - Status changed from 'new' to 'rejected'

@p6rt p6rt closed this as completed Dec 24, 2016
@p6rt p6rt added the Bug label Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant