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
Implement .name for the Bool constants in Rakudo #1059
Comments
From @masak<masak> rakudo: say False.name |
From @kylehaThis is an automatically generated mail to inform you that tests are now available in at least one of these files: misc/pm.txt, t/spec/S02-builtin_data_types/bool.t commit 6654f90c9d0eb5d302cf716ba8c9a60073ad1a2d [t/spec] Test for RT 66576: .name method on bool values Inline Patchdiff --git a/misc/pm.txt b/misc/pm.txt
index f464e5f..9765f5c 100644
--- a/misc/pm.txt
+++ b/misc/pm.txt
@@ -14,10 +14,6 @@ is meant to be used for e.g. map, which needs to work on lists like
(1,2,3), it can't cut constants out, so it seems no more constraining
than :(\$x) too. Should one of them go away?
-Kh-1: Is it true that Bool::True.name should work? Should it return
- the string 'True'?
- I as because of http://rt.perl.org/rt3/Public/Bug/Display.html?id=66576
-
==========
Answered questions:
@@ -116,4 +112,3 @@ declare my or our to make the & alias in the current lexpad, then
"is export" does no more magic than it ordinarily does. I suppose
method aliases are always considered multi when they show up in a
symbol table.
-
diff --git a/t/spec/S02-builtin_data_types/bool.t b/t/spec/S02-builtin_data_types/bool.t
index 95d408e..d5610d9 100644
--- a/t/spec/S02-builtin_data_types/bool.t
+++ b/t/spec/S02-builtin_data_types/bool.t
@@ -60,6 +60,12 @@ is(--$bool, Bool::False, 'Decrement of Bool::False produces Bool::False');
is ('RT65514' but Bool::False), 'RT65514', 'Bool::False works with "but"';
}
+#?rakudo skip 'RT 66576: .name method on bool values'
+{
+ is Bool::True.name, 'True', 'Bool::True.name works (is "True")';
+ is Bool::False.name, 'False', 'Bool::False.name works (is "False")';
+}
+
done_testing;
# vim: ft=perl6 |
The RT System itself - Status changed from 'new' to 'open' |
From @tadzikFixed in rakudo/rakudo@5e81848ad0 |
From @moritzfixed by tadzik++ (but with .key and not .name, as is current spec). |
@moritz - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#66576 (status was 'resolved')
Searchable as RT66576$
The text was updated successfully, but these errors were encountered: