Skip to content

adding test for #273 - #313

Merged
Razican merged 1 commit into
masterfrom
test-for-273
Apr 13, 2020
Merged

Razican merged 1 commit into
masterfrom
test-for-273

Conversation

@jasonwilliams

@jasonwilliams jasonwilliams commented Apr 13, 2020 •

Copy link
Copy Markdown
Member

Test for constructor precedence in the parser.
It can be quite verbose to read, i'm not sure if there's a better way of testing the AST output

@HalidOdat HalidOdat left a comment •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks perfect to me!

@Razican

Razican commented Apr 13, 2020

Copy link
Copy Markdown
Member

It can be quite verbose to read, i'm not sure if there's a better way of testing the AST output

Maybe we could add a macro to parser tests to generate AST easier. I can try that in a new PR.

@Razican Razican left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me :)

@Razican Razican added the C-Parser Issues surrounding the parser label Apr 13, 2020
@github-actions

Copy link
Copy Markdown

Benchmark for b61337e

Click to view benchmark
Test PR Benchmark Master Benchmark %
Create Realm 451.3±28.79µs 443.1±15.65µs 102%
Expression (Parser) 3.4±0.21µs 3.3±0.38µs 102%
Hello World (Execution) 477.5±32.73µs 456.2±22.95µs 105%
Hello World (Lexer) 1039.5±35.62ns 1149.0±85.46ns 88.99999999999999%
Hello World (Parser) 1194.5±44.52ns 1248.4±151.45ns 95%
Symbol Creation 565.4±42.83µs 576.9±47.25µs 98%
fibonacci (Execution) 5.3±0.20ms 5.7±0.55ms 93%
undefined undefined 100%

@Razican
Razican merged commit a0db788 into master Apr 13, 2020
@Razican
Razican deleted the test-for-273 branch April 13, 2020 13:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

C-Parser Issues surrounding the parser

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants