Skip to content

refactor main function/unit test compilation and evaluation #75

Description

@sfultong

In Spec.hs, there are unit tests like unitTest2 "main = 0" "0" This was a convenient way to test expressions, but main should be reserved for functions that belong in an input/output loop.

We should change all the unit tests, and we need to handle runStaticChecks differently for main vs inside unit tests.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions