The test test_variable_initialization_sym_table does not pass because it expects sym_table_init to read that the assigned value is a constant, and create a StrValue type rather than a Node type. It is commented out because of this. Fix sym_table_init to properly read the assigned value's child's type, and create a StrValue if its a constant and then uncomment out the test to prove it works.
Issue Type
[ ] Feature
[X] Bugfix
[ ] Documentation
[ ] Refactoring
[ ] Other:
Requirements
Working test_variable_initialization_sym_table test
Details
The test
test_variable_initialization_sym_table
does not pass because it expectssym_table_init
to read that the assigned value is a constant, and create a StrValue type rather than a Node type. It is commented out because of this. Fixsym_table_init
to properly read the assigned value's child's type, and create a StrValue if its a constant and then uncomment out the test to prove it works.Issue Type
Requirements
test_variable_initialization_sym_table
testNotes