Skip to content

Make hamcrest work with LocalHere #129

@VDFaller

Description

@VDFaller

I'm trying to write a test similar to

uttest("some case", "localhere", 
  Expr(
    LocalHere(
      ::utassertthat(Expr(1+2), ::utgreaterthan(2), "Simple")
    ) 
  )
);

And get the following

FAILURE  _utAssertThatNS:test expr /*###*/ test does not throw outside of ... (some case ⮚ localhere ⮚ Test)
    Actual: threw "Error: The namespace "_utAssertThatNS" is not defined. 1 time. _utAssertThatNS:test expr /*###*/"
    Expected: test does not throw outside of an assertion

I assume this would be more than just a simple substitute(txt, "_ut", "::_ut", "ut", "::ut")

The use case is that I'm running something two different ways, and I'm trying to not have the second time overwrite the first. It sets some here variables.

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