Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refine testing mechanism #451

Merged

Conversation

gfngfn
Copy link
Owner

@gfngfn gfngfn commented Aug 30, 2024

  • Change tests to ones of type unit -> unit, not unit
    • That is, we will write #[test] val foo-test () = … rather than #[test] val foo-test = …
  • Reformulate Testing so that it resembles alcotest in OCaml
  • Support test-only imports (use package #[test-only] Foo etc.) for white-box testing
  • Support test-only submodules (#[test-only] module Foo = … etc.)
  • Comparison operators <., >., <=., and >=. for floating-point numbers
    • Comparison involving NaN always evaluates to false; in this sense, a <=. b is not equivalent to not (a >. b)

gfngfn added 30 commits August 31, 2024 06:40
@gfngfn gfngfn changed the title [WIP] Refine testing mechanism Refine testing mechanism Aug 31, 2024
@gfngfn gfngfn marked this pull request as ready for review August 31, 2024 20:22
@gfngfn gfngfn merged commit c4e5598 into dev-0-1-0-separate-saphe-from-satysfi Aug 31, 2024
8 checks passed
@gfngfn gfngfn deleted the dev-0-1-0-refine-testing-mechanism branch August 31, 2024 20:30
@gfngfn gfngfn mentioned this pull request Aug 31, 2024
34 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

1 participant