JSAbrahams / mamba

🐍 The Mamba programming language, because we care about safety
MIT License
85 stars 3 forks source link

Add in construct for in operation #116

Closed JSAbrahams closed 5 years ago

JSAbrahams commented 5 years ago

Relevant issues

Fixes #113

Summary

Allows us to use Python's in boolean operator.

Added Tests

Check that in operator works as expected.

codecov[bot] commented 5 years ago

Codecov Report

Merging #116 into master will increase coverage by 0.03%. The diff coverage is 85.14%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #116      +/-   ##
==========================================
+ Coverage    82.5%   82.54%   +0.03%     
==========================================
  Files          65       65              
  Lines        4539     4565      +26     
==========================================
+ Hits         3745     3768      +23     
- Misses        794      797       +3
Impacted Files Coverage Ξ”
tests/desugar/error.rs 88.33% <ΓΈ> (+0.33%) :arrow_up:
tests/parser/invalid/control_flow.rs 100% <ΓΈ> (ΓΈ) :arrow_up:
src/core/construct.rs 27.64% <0%> (-0.23%) :arrow_down:
src/parser/expression.rs 93.84% <100%> (+0.01%) :arrow_up:
src/core/mod.rs 64.28% <100%> (-0.19%) :arrow_down:
src/desugar/control_flow.rs 78.12% <100%> (-0.67%) :arrow_down:
tests/parser/valid/operation.rs 100% <100%> (ΓΈ) :arrow_up:
tests/desugar/control_flow.rs 89.65% <100%> (-0.43%) :arrow_down:
src/parser/control_flow_stmt.rs 70.27% <100%> (-1.53%) :arrow_down:
src/parser/ast.rs 25.94% <50%> (+3.65%) :arrow_up:
... and 5 more

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 d599129...59b8b8f. Read the comment docs.