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

Fix mis-implemented test #573

Open
masak opened this issue Jul 14, 2022 · 0 comments
Open

Fix mis-implemented test #573

masak opened this issue Jul 14, 2022 · 0 comments

Comments

@masak
Copy link
Owner

masak commented Jul 14, 2022

Just noticed that this test doesn't test the right thing.

{
    my $program = q:to/./;
        func infix:<n>(left, right) {
            return 20;
        }
        say(4 * 5);
        .

    outputs $program, "20\n", "using an operator after defining it works";
}

It's not using the defined n operator, it's using the built-in *, which is quite uninteresting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant