Skip to content

"check" proc in unittest.nim prevents the propagation of changes to var parameters. #964

@Skrylar

Description

@Skrylar

Code to reproduce: https://gist.github.com/Skrylar/9258024
Compiler version: 69e2dfb

Using the 'check' macro for unit testing ends up preventing outside variables from being updated, which can lead to naive test code failing. Splitting the function call in to separate steps and then checking the variables afterwards functions as expected, however.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions