teal-language-server icon indicating copy to clipboard operation
teal-language-server copied to clipboard

Write a couple of unit tests

Open FourierTransformer opened this issue 1 year ago • 0 comments

I think having unit tests (or coverage) for at least the following would be good to start with:

  • [x] Document:get_tree_sitter_token
  • [ ] Document:type_information_for_tokens

It could potentially be extended to the completion method in general, but the above two really power it and are sorta the core logic in the teal-language-server.

I'd be a little cautious of testing the formatters, since they are the most likely to change (and are just for display purposes). Having tests for the document handling, and message passing would also be good.

FourierTransformer avatar Nov 29 '24 17:11 FourierTransformer