Skip to content

Implemented rest of Z3 operators. Closes 147. #168

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

Merged
merged 6 commits into from
Mar 21, 2023
Merged

Conversation

jmafoster1
Copy link
Contributor

No description provided.

@github-actions
Copy link

github-actions bot commented Mar 17, 2023

🦙 MegaLinter status: ⚠️ WARNING

Descriptor Linter Files Fixed Errors Elapsed time
⚠️ PYTHON black 24 1 1.14s
✅ PYTHON pylint 24 0 4.46s

See detailed report in MegaLinter reports

MegaLinter is graciously provided by OX Security

@codecov
Copy link

codecov bot commented Mar 17, 2023

Codecov Report

Merging #168 (203be8a) into main (b066d10) will decrease coverage by 1.54%.
The diff coverage is 100.00%.

❗ Current head 203be8a differs from pull request most recent head d042d4f. Consider uploading reports for the commit d042d4f to get more accurate results

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #168      +/-   ##
==========================================
- Coverage   92.44%   90.90%   -1.54%     
==========================================
  Files          19       17       -2     
  Lines        1297     1166     -131     
==========================================
- Hits         1199     1060     -139     
- Misses         98      106       +8     
Impacted Files Coverage Δ
causal_testing/specification/variable.py 100.00% <100.00%> (+3.29%) ⬆️

... and 6 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a187fec...d042d4f. Read the comment docs.

@jmafoster1 jmafoster1 marked this pull request as ready for review March 17, 2023 15:00
@jmafoster1 jmafoster1 linked an issue Mar 20, 2023 that may be closed by this pull request
Copy link
Contributor

@christopher-wild christopher-wild left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great to me :)

def test_copy(self):
ip = Input("ip", float, norm)
self.assertNotEqual(ip.copy(), ip)
self.assertTrue(ip.copy() is not ip)
self.assertEqual(ip.copy().name, ip.name)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

implementing an __eq__ method could make this test neater. But very minor thing

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With my functional programming/Isabelle mindset, I have extreme reluctance in implementing custom equality methods. If it really is best practice in this context, I can do it, but I'd prefer not to

@jmafoster1 jmafoster1 merged commit 2b5376d into main Mar 21, 2023
@jmafoster1 jmafoster1 deleted the z3_operations branch March 21, 2023 14:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Variable TODOs
2 participants