OpenModelica / tree-sitter-modelica

A tree-sitter parser for Modelica
Other
3 stars 5 forks source link

added test #4

Closed osman362 closed 1 year ago

osman362 commented 1 year ago

The tree-sitter-modelica was lacking tests to check if each element is shown correctly in the syntax tree. So I added tests for the grammar. For each test I created a small example code and afterwards the syntax tree that should be created based on the grammar. Part of the example code that were used are a direct copy of mtiller/modelica-tree-sitter.

Code copied:

Tests for:

CLAassistant commented 1 year ago

CLA assistant check
All committers have signed the CLA.