google / google/xls

[DSLX] Create example where we use assert_eq! in a function called by a test

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

Description

When running tests through DSL interpretation is clear what `assert_eq!`'s behavior is. Hypothetically they could be synthesized as well by desugaring to `fail!`. I do not believe there's currently a test in the suite that demonstrates `assert_eq!` usage in the body of a function that's not decorated by `#![test]` (i.e. in a function that is *called* by a `#![test]`), so we should make one and corresponding documentation on what users can expect in doing this, even in functions that are not only-called-from-test-entry-points.

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.