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

Convert a test to use Hypothesis #1507

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Commits on Aug 3, 2023

  1. Convert a test to use Hypothesis

    This is a proof of concept for Hypothesis tests. I selected a test that
    was easy to convert and replaced the existing test with hard-coded
    values with a few tests that use Hypothesis.
    
    Since it was pretty easy to do, I also added tests for complex inputs.
    One thing I discovered is that cscalar doesn't work for any of the
    numpy functions. Hypothesis inevitably finds a value that can't be
    represented precisely and the test fails. All the functions work with
    zscalar.
    
    see: aesara-devs#197
    etellman committed Aug 3, 2023
    Configuration menu
    Copy the full SHA
    6e26df3 View commit details
    Browse the repository at this point in the history
  2. Fix Black errors

    Remove unused imports and fix one formatting issue.
    etellman committed Aug 3, 2023
    Configuration menu
    Copy the full SHA
    fa832d4 View commit details
    Browse the repository at this point in the history

Commits on Aug 6, 2023

  1. Add Hypothesis to GitHub workflow test configuration

    Add Hypothesis installation to test.yaml in the GitHub workflow.
    etellman committed Aug 6, 2023
    Configuration menu
    Copy the full SHA
    a045354 View commit details
    Browse the repository at this point in the history