PSLmodels / InverseOptimalTax

Inverse optimal taxation model
https://pslmodels.github.io/InverseOptimalTax/
1 stars 3 forks source link

Add unit tests #10

Closed jdebacker closed 2 years ago

jdebacker commented 2 years ago

This PR adds additional unit tests of methods.

Code is also formatted to conform with black.

codecov-commenter commented 2 years ago

Codecov Report

Merging #10 (71afb91) into main (a86c462) will increase coverage by 5.26%. The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main      #10      +/-   ##
==========================================
+ Coverage   80.00%   85.26%   +5.26%     
==========================================
  Files           3        3              
  Lines          70       95      +25     
==========================================
+ Hits           56       81      +25     
  Misses         14       14              
Flag Coverage Δ
unittests 85.26% <100.00%> (+5.26%) :arrow_up:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
iot/tests/test_inverse_optimal_tax.py 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

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