Revision 7f36e33a
Added by Andreas Kohlbecker about 4 years ago
modules/cdm_dataportal/test/phpUnit/src/unit/StatisticalValuesTest.php | ||
---|---|---|
87 | 87 |
$this->assertEquals('2.2–8.7 [5;x̄=5;σ²=0.3;σ=0.12] cm', $this->html2text(statistical_values($stat_vals, 'cm'))); |
88 | 88 |
} |
89 | 89 |
|
90 |
|
|
91 |
function test_statistical_values_no_brackets() { |
|
92 |
|
|
93 |
$stat_vals = $this->create_statistical_values(2.2, 8.7); |
|
94 |
$this->assertEquals('2.2–8.7 cm', $this->html2text(statistical_values($stat_vals, 'cm'))); |
|
95 |
|
|
96 |
$stat_vals = $this->create_statistical_values(null, null, 5.3); |
|
97 |
$this->assertEquals('5.3 m', $this->html2text(statistical_values($stat_vals, 'm'))); |
|
98 |
} |
|
99 |
|
|
90 | 100 |
} |
Also available in: Unified diff
fix #8828 removing empty brackets from statistical values in QuantitativeData and cleaning up