ASTFactory Tests

Hello, I have a question about the tests. Since my problem is occurring at all AST tests, I took this test as an example:

Bildschirmfoto 2022-07-12 um 14.43.55
Bildschirmfoto 2022-07-12 um 14.46.25

When running the tests it says that I get the wrong result, but I don’t understand why the expected result is noted in such a weird way and not like it is described in the project destribtion.

It is like in the project description:

3.2 Output of the compiler
[…] x+1 is printed as
Binary_ +[ Var_x , Const_1 ]

ah thank you, I can still fix it till the next daily tests :sweat_smile:

These tests (BinaryExprTests) are public. You can run them any time you want.
You can and should also create more own tests to run.

1 Like

Note that last year’s project description is not applicable.