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

Test module does not show “expected” and “got” values if PERL6_TEST_DIE_ON_FAIL is set #5638

Closed
p6rt opened this issue Sep 4, 2016 · 4 comments

Comments

@p6rt
Copy link

p6rt commented Sep 4, 2016

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

Searchable as RT129192$

@p6rt
Copy link
Author

p6rt commented Sep 4, 2016

From @AlexDaniel

Command​:
PERL6_TEST_DIE_ON_FAIL=1 perl6 -e 'use Test; is 25, 45, ‘foo’; done-testing'

Result​:
not ok 1 - foo

# Failed test 'foo'
# at -e line 1
# Test failed. Stopping test suite, because PERL6_TEST_DIE_ON_FAIL environmental variable is set to a true value.

OK, but where are “expected​:” and “got​:” values?

It works as expected if PERL6_TEST_DIE_ON_FAIL is not set​:

Command​:
perl6 -e 'use Test; is 25, 45, ‘foo’; done-testing'

Result​:
not ok 1 - foo

# Failed test 'foo'
# at -e line 1
# expected​: '45'
#      got​: '25'
1..1
# Looks like you failed 1 test of 1

Is there any good reason why it cannot print it?

@p6rt
Copy link
Author

p6rt commented Sep 5, 2016

From @zoffixznet

Fixed in​: rakudo/rakudo@75ba8cc6c3
Tests​: Raku/roast@350d02be0b

@p6rt
Copy link
Author

p6rt commented Sep 5, 2016

The RT System itself - Status changed from 'new' to 'open'

@p6rt
Copy link
Author

p6rt commented Sep 5, 2016

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

@p6rt p6rt closed this as completed Sep 5, 2016
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

1 participant