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

Putting a few things in order #658

Merged
merged 36 commits into from
Aug 1, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
4050234
Diamonds were fixed with the last role overhaul
vrurg Jul 27, 2020
a938917
Rewrite test to avoid use of a file handle
vrurg Jul 27, 2020
ca320cf
Add a canary test
vrurg Jul 27, 2020
0625a27
Add S16-unfiled/getpeername.t to spectest.data
vrurg Jul 27, 2020
e892829
Move the test into S32-str
vrurg Jul 27, 2020
505a626
Unfudge S32-list/toggle.t and add to spectest.data
vrurg Jul 27, 2020
c52ebc6
Fix implementation of eval VERB
vrurg Jul 27, 2020
2380b9e
Fudge S13-syntax/aliasing.t and add it to spectest.data
vrurg Jul 27, 2020
92d535e
Fudge S24-testing/2-force_todo.t and add it to spectest.data
vrurg Jul 27, 2020
975235d
Added S17-supply/Seq.t
vrurg Jul 27, 2020
6c03128
Fix S10-packages/export.t and add it to spectest.data
vrurg Jul 28, 2020
d3ef368
Fudge tests of unimplemented :secure and add to spectest.data
vrurg Jul 28, 2020
5d8d45b
Added passing S10-packages/nested-use.t
vrurg Jul 28, 2020
660d425
Fix S10-packages/scope.t and add it to spectest.data
vrurg Jul 28, 2020
cd8df27
Fixed and fudged the test, added to spectest.data
vrurg Jul 28, 2020
83b6ce6
Fix and modernize test, add to spectest.data
vrurg Jul 28, 2020
db6ec9a
Fudge for jvm and add to spectest.data
vrurg Jul 28, 2020
82369b4
Adapt the test to the syntax and semantics of Raku v6.c
vrurg Jul 30, 2020
abca43f
Adapt test for Raku v6.c syntax and semantics
vrurg Jul 30, 2020
deb54cc
Fix S11-modules/gh2979.t test
vrurg Jul 30, 2020
a2d54c0
Remove S17-supply/watch-path.t
vrurg Jul 31, 2020
c5b6a39
Make `eval` verb a TODO
vrurg Jul 31, 2020
cf4394b
Fudge and add S12-attributes/augment-and-initialization.t
vrurg Jul 31, 2020
b380635
Fix a module
vrurg Jul 31, 2020
66376d7
Fix and add S14-roles/attributes-6e.t
vrurg Jul 31, 2020
bb82243
Add S05-mass/properties-contributory.t
vrurg Jul 31, 2020
4fffc73
Clarify and add S26-documentation/12-non-breaking-space.t
vrurg Aug 1, 2020
5f366c3
Add a note about `RakuAST`
vrurg Aug 1, 2020
b38965a
Fix S04-phasers/interpolate.t and add it to spectest.data
vrurg Aug 1, 2020
bc07efc
Add a note about `RakuAST`
vrurg Aug 1, 2020
d7217da
Fudge S04-statements/leave.t and add to spectest.data
vrurg Aug 1, 2020
26526b2
Fudge S04-statements/lazy.t with `eval` and add to spectest.data
vrurg Aug 1, 2020
3c224e0
Add S14-roles/versioning.t to spectest.data
vrurg Aug 1, 2020
4916181
Add S03-sequence/exhaustive.t
vrurg Aug 1, 2020
cc01487
Add S11-modules/versioning.t
vrurg Aug 1, 2020
14a0332
Update fudge usage text
vrurg Aug 1, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 7 additions & 9 deletions S04-phasers/interpolate.t
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use v6;

use Test;

plan 6;
plan 5;

# [TODO] add tests for ENTER/LEAVE/KEEP/UNDO/PRE/POST/etc

Expand All @@ -21,22 +21,20 @@ plan 6;
my $hist;

END {
is $hist, 'BCISE', 'interpolated END {...} executed';
is $hist, 'BCIE', 'interpolated END {...} executed';
}

nok "{ END { $hist ~= 'E' } }".defined,
# END phaser doesn't have a return value.
nok "{ END { $hist ~= 'E' } // "" }",
'END {...} not yet executed';

is "{ START { $hist ~= 'S' } }", "BCIS",
'START {...} fired at run-time, entry time of the mainline code';

is "{ INIT { $hist ~= 'I' } }", 'BCI',
is "{ INIT { $hist ~= 'I'; $hist<> } }", 'BCI',
'INIT {...} fired at the beginning of runtime';

is "{ CHECK { $hist ~= 'C' } }", "BC",
is "{ CHECK { $hist ~= 'C'; $hist<> } }", "BC",
'CHECK {...} fired at compile-time, ALAP';

is "{ BEGIN { $hist ~= 'B' } }", "B",
is "{ BEGIN { $hist ~= 'B'; $hist<> } }", "B",
'BEGIN {...} fired at compile-time, ASAP';

# vim: expandtab shiftwidth=4
7 changes: 6 additions & 1 deletion S04-statements/lazy.t
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,12 @@ use Test;
plan 10;

# https://github.com/Raku/old-issue-tracker/issues/3885
#?rakudo eval "lazy in not there yet"
{
my $was_in_lazy;
my $var;

my $var := lazy { $was_in_lazy++; 42 };
$var := lazy { $was_in_lazy++; 42 };

#?rakudo todo 'lazy NYI, currently works like "do"; RT #124571'
ok !$was_in_lazy, 'lazy block wasn\'t yet executed (1)';
Expand All @@ -24,6 +26,7 @@ plan 10;

# https://github.com/Raku/old-issue-tracker/issues/3885
# dies-ok/lives-ok tests:
#?rakudo eval "lazy in not there yet"
{
my $was_in_lazy;
my $lazy := lazy { $was_in_lazy++; 42 };
Expand All @@ -33,6 +36,7 @@ plan 10;
}

# https://github.com/Raku/old-issue-tracker/issues/3885
#?rakudo eval "lazy in not there yet"
{
my $was_in_lazy;
my $lazy := lazy { $was_in_lazy++; 42 };
Expand All @@ -42,6 +46,7 @@ plan 10;
ok !$was_in_lazy, "rebinding var bound to a lazy does not evaluate lazy block";
}

#?rakudo todo "lazy in not there yet"
{
throws-like '(lazy { 43 }) = 23 ', X::Assignment::RO,
"assigning to a lazily computed value does not work";
Expand Down
Loading