Storm 2.0.0.3
A Modern Probabilistic Model Checker
Loading...
Searching...
No Matches
ExportCheckResultTest.cpp File Reference
Include dependency graph for ExportCheckResultTest.cpp:

Go to the source code of this file.

Functions

template<typename ValueType>
void runNegativeInfinityExportTest ()
 No model checker hands out a negative infinity today, so this builds the check result directly.
 TEST (ExportCheckResultTest, NegativeInfinityDouble)
 TEST (ExportCheckResultTest, NegativeInfinityExact)
 TEST (ExportCheckResultTest, ExactValuesAndBoundsRoundTrip)
 TEST (ExportCheckResultTest, PrintsTheApproximationOfAnExactValue)
 A check result holds its values in the extended value type, so the test that decides whether to print the decimal approximation of an exact value has to recognise that type too.
 TEST (ExportCheckResultTest, PrintsNoApproximationOfAnInexactValue)
 The counterpart: a value type that is already decimal has nothing to approximate.
 TEST (ExportCheckResultTest, RangeOutputShowsBounds)
 A result with ten or more values is written as the range of its values, which then also has to show the bounds.
 TEST (ExportCheckResultTest, ExactSolutionIsAnnouncedInsteadOfItsBounds)
 Bounds that coincide with the values leave nothing to report but the fact that they do.
 TEST (ExportCheckResultTest, RangeOutputAnnouncesAnExactSolution)
 TEST (ExportCheckResultTest, InfiniteRewardDouble)
 TEST (ExportCheckResultTest, InfiniteRewardExact)

Function Documentation

◆ runNegativeInfinityExportTest()

template<typename ValueType>
void runNegativeInfinityExportTest ( )

No model checker hands out a negative infinity today, so this builds the check result directly.

The export must not fall back to the finite payload of an infinite value, which is a zero that means nothing.

Definition at line 134 of file ExportCheckResultTest.cpp.

◆ TEST() [1/10]

TEST ( ExportCheckResultTest ,
ExactSolutionIsAnnouncedInsteadOfItsBounds  )

Bounds that coincide with the values leave nothing to report but the fact that they do.

Definition at line 233 of file ExportCheckResultTest.cpp.

◆ TEST() [2/10]

TEST ( ExportCheckResultTest ,
ExactValuesAndBoundsRoundTrip  )

Definition at line 166 of file ExportCheckResultTest.cpp.

◆ TEST() [3/10]

TEST ( ExportCheckResultTest ,
InfiniteRewardDouble  )

Definition at line 253 of file ExportCheckResultTest.cpp.

◆ TEST() [4/10]

TEST ( ExportCheckResultTest ,
InfiniteRewardExact  )

Definition at line 258 of file ExportCheckResultTest.cpp.

◆ TEST() [5/10]

TEST ( ExportCheckResultTest ,
NegativeInfinityDouble  )

Definition at line 158 of file ExportCheckResultTest.cpp.

◆ TEST() [6/10]

TEST ( ExportCheckResultTest ,
NegativeInfinityExact  )

Definition at line 162 of file ExportCheckResultTest.cpp.

◆ TEST() [7/10]

TEST ( ExportCheckResultTest ,
PrintsNoApproximationOfAnInexactValue  )

The counterpart: a value type that is already decimal has nothing to approximate.

Definition at line 206 of file ExportCheckResultTest.cpp.

◆ TEST() [8/10]

TEST ( ExportCheckResultTest ,
PrintsTheApproximationOfAnExactValue  )

A check result holds its values in the extended value type, so the test that decides whether to print the decimal approximation of an exact value has to recognise that type too.

It recognised only the plain one for a while, which silently dropped the approximation from every exact result.

Definition at line 192 of file ExportCheckResultTest.cpp.

◆ TEST() [9/10]

TEST ( ExportCheckResultTest ,
RangeOutputAnnouncesAnExactSolution  )

Definition at line 242 of file ExportCheckResultTest.cpp.

◆ TEST() [10/10]

TEST ( ExportCheckResultTest ,
RangeOutputShowsBounds  )

A result with ten or more values is written as the range of its values, which then also has to show the bounds.

Definition at line 217 of file ExportCheckResultTest.cpp.