Skip to content

make expect work for compile-time if possibleΒ #28

@disruptek

Description

@disruptek
import testes

func failcase(path: string): string {.compileTime.} =
  raise newException(ValueError, "nope.")

suite "testes":
  block:
    expect ValueError:
      failcase("some string")

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions