Skip to content

Commit 585a6c0

Browse files
committed
more tests
1 parent 6557059 commit 585a6c0

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

Tests/dataProviders/meteo-hdf5/reos_meteo_hdf5_test.cpp

+5
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,9 @@ void ReosMeteoHdf5Test::rainOnWatershed()
145145
QCOMPARE( values.at( 1 ), 0.1244901610017982 );
146146
QCOMPARE( values.at( 2 ), 0.116361515127953 );
147147

148+
ReosDuration timeStep = gridOnWs->timeStep();
149+
QVERIFY( timeStep == ReosDuration( 5.0, ReosDuration::minute ) );
150+
148151

149152
watershed_poly.clear();
150153
watershed_poly << QPointF( 3.37651104703155402, 43.78221043303267379 )
@@ -165,6 +168,8 @@ void ReosMeteoHdf5Test::rainOnWatershed()
165168
QCOMPARE( values.at( 0 ), 0.03978165938864616 );
166169
QCOMPARE( values.at( 1 ), 0.02716157205240172 );
167170
QCOMPARE( values.at( 2 ), 0.01061135371179039 );
171+
timeStep = gridOnWs->timeStep();
172+
QVERIFY( timeStep == ReosDuration( 5.0, ReosDuration::minute ) );
168173
}
169174

170175

src/dataProviders/meteo-hdf5/reosmeteohdf5.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
/***************************************************************************
2-
reosgribprovider.cpp - ReosGribProvider
2+
reosmeteohdf5.cpp - ReosMeteoHdf5Provider
33
44
---------------------
5-
begin : 11.11.2022
6-
copyright : (C) 2022 by Vincent Cloarec
5+
begin : 14.03.2025
6+
copyright : (C) 2025 by Vincent Cloarec
77
email : vcloarec at gmail dot com
88
***************************************************************************
99
* *

0 commit comments

Comments
 (0)