testing1/drumb_test3.scala
changeset 166 780c40aaad27
parent 144 716042628398
--- a/testing1/drumb_test3.scala	Thu Dec 07 12:09:06 2017 +0000
+++ b/testing1/drumb_test3.scala	Sat Dec 16 23:53:28 2017 +0000
@@ -16,5 +16,11 @@
 
 // the rstate value is 30895 because of a faulty ESS.cvs file
 
-assert(urban_rstate_res > 30885 && urban_rstate_res < 30905)
-assert(urban_blchip_res > 349587 && urban_blchip_res < 349607)
+// if you round after each year to a Long you get 30895 and 349597
+// if you work with doubles until the end and then round to a Long you get 30937 and 355204
+
+assert((urban_rstate_res > 30885 && urban_rstate_res < 30905) ||
+       (urban_rstate_res > 30927 && urban_rstate_res < 30947))
+
+assert((urban_blchip_res > 349587 && urban_blchip_res < 349607) ||
+       (urban_blchip_res > 355194 && urban_blchip_res < 355214))