Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
190: refactor unittest.expect r=saem a=krux02 current implementation of expect uses following features: * `body` argument after ``varargs[typed]`` * exceptions for nnkExceptionBranch branch wrapped in nnkBracket The argument after varargs is underspecified and badly implemented. In other words it has bugs and it is unclear if they can be fixer or the feature needs to be deprecated and removed. Wrapping exceptions in nnkBracket for nnkExceptionBranch is in conflict with astspec. According to the spec tha exceptions must be added directly to nnkExceptionBranch. It is questionable how and why it even compiles. You could argue that changing the names for `expect` is a breaking change. But I argue that by saying that `expect` was never inteded to be used with named arguments. Co-authored-by: Arne Döring <[email protected]>
- Loading branch information