infiniteopt / InfiniteOpt.jl

An intuitive modeling interface for infinite-dimensional optimization problems.
https://infiniteopt.github.io/InfiniteOpt.jl/stable
MIT License
251 stars 17 forks source link

Prevent empty `+()` when mapping to ASTs #324

Closed pulsipher closed 10 months ago

pulsipher commented 10 months ago

This fixes a bug when building ASTs to avoid the case where we get :(+()) which is not valid Julia code.

codecov[bot] commented 10 months ago

Codecov Report

Merging #324 (995ab26) into master (fd051e8) will increase coverage by 0.00%. The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master     #324   +/-   ##
=======================================
  Coverage   99.77%   99.77%           
=======================================
  Files          36       36           
  Lines        6602     6604    +2     
=======================================
+ Hits         6587     6589    +2     
  Misses         15       15           
Files Coverage Δ
src/expressions.jl 99.67% <100.00%> (+<0.01%) :arrow_up: