statisticsnorway / java-vtl

An Open Source Java implementation of the Validation Transformation Language, based on the VTL 1.1 draft specification. The implementation follows the JSR-223 Java Scripting API and exposes a simple connector interface one can implement in order to integrate with any data stores. VTL is a standard language for defining validation and transformation rules (set of operators, their syntax and semantics) for any kind of statistical data.
http://java-vtl.org
Apache License 2.0
21 stars 7 forks source link

Add support for round on non finite values #84

Closed hadrienk closed 6 years ago

hadrienk commented 6 years ago

Non finite values are:

When using round on non finite values the result should be returned unchanged.

For the floor function, since we do not support typed signature yet, the result need to be cast:

codecov[bot] commented 6 years ago

Codecov Report

Merging #84 into develop will increase coverage by 0.05%. The diff coverage is 100%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop      #84      +/-   ##
===========================================
+ Coverage    78.58%   78.64%   +0.05%     
===========================================
  Files          141      141              
  Lines         3577     3582       +5     
  Branches       419      420       +1     
===========================================
+ Hits          2811     2817       +6     
  Misses         642      642              
+ Partials       124      123       -1
Impacted Files Coverage Δ
...ain/java/no/ssb/vtl/script/functions/VTLRound.java 100% <100%> (ø) :arrow_up:
...del/src/main/java/no/ssb/vtl/model/VTLInteger.java 100% <100%> (ø) :arrow_up:
...model/src/main/java/no/ssb/vtl/model/VTLFloat.java 100% <100%> (+16.66%) :arrow_up:
...ain/java/no/ssb/vtl/script/functions/VTLFloor.java 100% <100%> (ø) :arrow_up:

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 a52efcc...f71e3c8. Read the comment docs.