masak / alma

ALgoloid with MAcros -- a language with Algol-family syntax where macros take center stage
Artistic License 2.0
137 stars 14 forks source link

Fix mis-implemented test #573

Open masak opened 1 year ago

masak commented 1 year ago

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.