Skip to content

Unit test bundle for type checking and function signatures #87

Description

@hinshun

Tests should go into compile_test.go, and the input program should be minimal as possible. There may be more than one test case per bullet point.

  • Calling function that is wrong type for the function it is called in should produce error.
  • Calling function with args that don't match its signature should produce error (length, basic literal type, function type, func lit type).
  • Calling function with option that doesn't match the subtype should produce error.
  • Correctly calling function with variadic field in its signature should succeed.

Activity

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions