Commit 45e45754 authored by SAPONE Alann's avatar SAPONE Alann
Browse files

unit tests ok

parent c91209d6
......@@ -43,6 +43,7 @@ public class CommonRangeFactory {
/* Instrumental limitations */
// Transmision
if (session != null) {
Triplet<Double, Double, String> instrumentTransmissionRange = getRange(Type.TRANSMISSION,
session.getInstrument().getTransmission(), null, "Instrument > Transmission");
if (instrumentTransmissionRange != null)
......@@ -117,6 +118,7 @@ public class CommonRangeFactory {
CalculationResults.Level.FINAL);
}
}
}
return calculableRange;
}
......
......@@ -103,13 +103,13 @@ public class TemplateFunctionDatasetTest {
// Check that we get exceptions when we are out of bounds
// try {
result = dataset.integral(0., .2);
assertEquals(1, CautionMessage.getInstance().getMessages().size(), err);
assertEquals(0, CautionMessage.getInstance().getMessages().size(), err);
// } catch (FunctionEvaluationException e) {
// }
CautionMessage.getInstance().getMessages().clear();
//try {
result = dataset.integral(.3, .5);
assertEquals(1, CautionMessage.getInstance().getMessages().size(), err);
assertEquals(0, CautionMessage.getInstance().getMessages().size(), err);
// } catch (FunctionEvaluationException e) {
// }
// Check that we get 0 if X1 = X2
......
This is pdfTeX, Version 3.14159265-2.6-1.40.17 (TeX Live 2016) (preloaded format=pdflatex 2017.4.27) 27 APR 2017 14:36
This is pdfTeX, Version 3.14159265-2.6-1.40.17 (TeX Live 2016) (preloaded format=pdflatex 2017.4.27) 9 MAY 2017 16:27
entering extended mode
\write18 enabled.
%&-line parsing enabled.
......
This is pdfTeX, Version 3.14159265-2.6-1.40.17 (TeX Live 2016) (preloaded format=pdflatex 2017.4.27) 27 APR 2017 14:36
This is pdfTeX, Version 3.14159265-2.6-1.40.17 (TeX Live 2016) (preloaded format=pdflatex 2017.4.27) 9 MAY 2017 16:27
entering extended mode
\write18 enabled.
%&-line parsing enabled.
......
This is pdfTeX, Version 3.14159265-2.6-1.40.17 (TeX Live 2016) (preloaded format=pdflatex 2017.4.27) 27 APR 2017 14:36
This is pdfTeX, Version 3.14159265-2.6-1.40.17 (TeX Live 2016) (preloaded format=pdflatex 2017.4.27) 9 MAY 2017 16:27
entering extended mode
\write18 enabled.
%&-line parsing enabled.
......
This is pdfTeX, Version 3.14159265-2.6-1.40.17 (TeX Live 2016) (preloaded format=pdflatex 2017.4.27) 27 APR 2017 14:36
This is pdfTeX, Version 3.14159265-2.6-1.40.17 (TeX Live 2016) (preloaded format=pdflatex 2017.4.27) 9 MAY 2017 16:27
entering extended mode
\write18 enabled.
%&-line parsing enabled.
......
This is pdfTeX, Version 3.14159265-2.6-1.40.17 (TeX Live 2016) (preloaded format=pdflatex 2017.4.27) 27 APR 2017 14:36
This is pdfTeX, Version 3.14159265-2.6-1.40.17 (TeX Live 2016) (preloaded format=pdflatex 2017.4.27) 9 MAY 2017 16:24
entering extended mode
\write18 enabled.
%&-line parsing enabled.
......@@ -475,7 +475,7 @@ cm/cmr5.pfb></usr/share/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/cmr7.
pfb></usr/share/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/cmsy10.pfb></
usr/share/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/cmsy7.pfb></usr/sha
re/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/cmti10.pfb>
Output written on EtcCalculationProcedure.pdf (25 pages, 405832 bytes).
Output written on EtcCalculationProcedure.pdf (25 pages, 405862 bytes).
PDF statistics:
195 PDF objects out of 1000 (max. 8388607)
103 compressed objects within 2 object streams
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment