]> gerrit.simantics Code Review - simantics/sysdyn.git/commitdiff
Getting closer
authorvillberg <villberg@ac1ea38d-2e2b-0410-8846-a27921b304fc>
Mon, 31 Mar 2014 11:45:54 +0000 (11:45 +0000)
committervillberg <villberg@ac1ea38d-2e2b-0410-8846-a27921b304fc>
Mon, 31 Mar 2014 11:45:54 +0000 (11:45 +0000)
refs #4765

git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@29224 ac1ea38d-2e2b-0410-8846-a27921b304fc

org.simantics.sysdyn.tests/src/org/simantics/sysdyn/tests/scripts/ImportModel_DiscoveryAndExploitationOfResources.sts
org.simantics.sysdyn.tests/src/org/simantics/sysdyn/tests/scripts/ImportModel_PredatorAndLimitedPrey.sts
org.simantics.sysdyn.tests/src/org/simantics/sysdyn/tests/scripts/ImportModel_ResourceExploitationUseRecycling.sts
org.simantics.sysdyn.tests/src/org/simantics/sysdyn/tests/scripts/ImportModel_TouristsEnvironmentsAndHotelFacilities.sts

index e7e584f00ae2648dbfcb911189b5196c40c6edb7..d2b35a770180724b42e23b31a4205136b901532c 100644 (file)
@@ -6,3 +6,5 @@
 >exp = fromJust $ possibleResourceChild m "Experiment"\r
 >id = activateExperiment exp\r
 >run id\r
+>withinEpsilon (lastValue exp id "/Available Resources") 6.127e-6 0.001\r
+True
\ No newline at end of file
index 4f754f6e992cb230988a160ad963f3775d0241e3..2aed19ba9ab3a385245cfb566023a895cd7aad11 100644 (file)
@@ -6,3 +6,5 @@
 >exp = fromJust $ possibleResourceChild m "Experiment"\r
 >id = activateExperiment exp\r
 >run id\r
+>withinEpsilon (lastValue exp id "/prey") 0.998 0.001\r
+True
\ No newline at end of file
index dca003edb6d2cbad3de46de58f8bff45e654494a..9dc029bdefab918bb118abb2c325a0153ea9309e 100644 (file)
@@ -6,3 +6,5 @@
 >exp = fromJust $ possibleResourceChild m "Experiment"\r
 >id = activateExperiment exp\r
 >run id\r
+>withinEpsilon (lastValue exp id "/Resource Demand") 9.243 0.001\r
+True
\ No newline at end of file
index f77a497b6885fbbe3a8a8f10ba5fd618ce66ac3b..8bfd516fcd913680afcbea05928ae739e93f18eb 100644 (file)
@@ -6,3 +6,5 @@
 >exp = fromJust $ possibleResourceChild m "Experiment"\r
 >id = activateExperiment exp\r
 >run id\r
+>withinEpsilon (lastValue exp id "/Tourists") 2674.532 0.001\r
+True
\ No newline at end of file