google / google/xls

[DSLX] Feature: Add `#[test_fail]` and `#[test_proc_fail]`

Open
#1,071 3 comments 0 reactions 0 assignees View on GitHub
dslx enhancement testing
Dominant language
C++
Stars
1.9k
Forks
283
Avg merge
2d 10h
Merged PRs (30d)
135

Description

Right now `#[test_proc]` and `#[test]` always has to succeed.

Adding new language testing feature will allow for negative testing.
I think it would only require adding `#[test_fail]` and `#[test_proc_fail]` to the language parser.
Test procs or fn should keep their current type format, and the bulk of the changes would be
applied to the DSLX interpreter.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.