DylanSp / wheel-lang

A small toy imperative language (with some OOP features) for demonstrating and practicing language design/implementation.
MIT License
14 stars 0 forks source link

Update tests to include testing native functions #36

Closed DylanSp closed 4 years ago

DylanSp commented 4 years ago

Check code coverage, get as high as possible

DylanSp commented 4 years ago

Make sure to have tests that exercise calling native functions as expression statements, i.e.

{
  printNum(3);
}
DylanSp commented 4 years ago

Update tests to explicitly import jest globals (see https://jestjs.io/blog/2020/05/05/jest-26#a-new-way-to-consume-jest---jestglobals)

EDIT: Never mind; don't do until Jest allows disabling globals, so I know exactly what I need to import.