Skip to content

Commit dbb24e9

Browse files
committedMay 22, 2016
[processing tests] More tolerance in statistics test
1 parent ced7c27 commit dbb24e9

File tree

2 files changed

+21
-23
lines changed

2 files changed

+21
-23
lines changed
 

‎python/plugins/processing/tests/testdata/expected/basic_statistics_numeric_float.html

Lines changed: 0 additions & 21 deletions
This file was deleted.

‎python/plugins/processing/tests/testdata/qgis_algorithm_tests.yaml

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,27 @@ tests:
7272
- 'Bfloatval'
7373
results:
7474
OUTPUT_HTML_FILE:
75-
name: expected/basic_statistics_numeric_float.html
76-
type: file
75+
name: basic_statistics_numeric_float.html
76+
type: regex
77+
rules:
78+
- 'Analyzed layer: multipolys.gml'
79+
- 'Analyzed field: Bfloatval'
80+
- 'Count: 3'
81+
- 'Unique values: 3'
82+
- 'Minimum value: -0.123'
83+
- 'Maximum value: 0.123'
84+
- 'Range: 0.246'
85+
- 'Sum: 0.0'
86+
- 'Mean value: 0.0'
87+
- 'Median value: 0.0'
88+
- 'Standard deviation: 0.100429079454'
89+
- 'Coefficient of Variation: 0'
90+
- 'Minority \(rarest occurring value\): -0.123'
91+
- 'Majority \(most frequently occurring value\): -0.123'
92+
- 'First quartile: -0.0615'
93+
- 'Third quartile: 0.0615'
94+
- 'NULL \(missing\) values: 1'
95+
- 'Interquartile Range \(IQR\): 0.123'
7796

7897
- algorithm: qgis:basicstatisticsfortextfields
7998
name: Test (qgis:basicstatisticsfortextfields)

0 commit comments

Comments
 (0)
Please sign in to comment.