Made tests passing for Ex2
Two tests were not passing because the structure expected as an output of the parser was a Block
, but the input data was not surrounded by curly brackets ({}
). Also, the infinite while
loop was blocking the tests.
This means that all tests should now pass with cargo test --example ex_2_syntax
, as long as the features have been implemented.