From cef5e62c0e79a228a227b79cf14f5c64f07ba360 Mon Sep 17 00:00:00 2001 From: villberg Date: Mon, 31 Mar 2014 11:45:54 +0000 Subject: [PATCH] Getting closer refs #4765 git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@29224 ac1ea38d-2e2b-0410-8846-a27921b304fc --- .../scripts/ImportModel_DiscoveryAndExploitationOfResources.sts | 2 ++ .../sysdyn/tests/scripts/ImportModel_PredatorAndLimitedPrey.sts | 2 ++ .../scripts/ImportModel_ResourceExploitationUseRecycling.sts | 2 ++ .../ImportModel_TouristsEnvironmentsAndHotelFacilities.sts | 2 ++ 4 files changed, 8 insertions(+) diff --git a/org.simantics.sysdyn.tests/src/org/simantics/sysdyn/tests/scripts/ImportModel_DiscoveryAndExploitationOfResources.sts b/org.simantics.sysdyn.tests/src/org/simantics/sysdyn/tests/scripts/ImportModel_DiscoveryAndExploitationOfResources.sts index e7e584f0..d2b35a77 100644 --- a/org.simantics.sysdyn.tests/src/org/simantics/sysdyn/tests/scripts/ImportModel_DiscoveryAndExploitationOfResources.sts +++ b/org.simantics.sysdyn.tests/src/org/simantics/sysdyn/tests/scripts/ImportModel_DiscoveryAndExploitationOfResources.sts @@ -6,3 +6,5 @@ >exp = fromJust $ possibleResourceChild m "Experiment" >id = activateExperiment exp >run id +>withinEpsilon (lastValue exp id "/Available Resources") 6.127e-6 0.001 +True \ No newline at end of file diff --git a/org.simantics.sysdyn.tests/src/org/simantics/sysdyn/tests/scripts/ImportModel_PredatorAndLimitedPrey.sts b/org.simantics.sysdyn.tests/src/org/simantics/sysdyn/tests/scripts/ImportModel_PredatorAndLimitedPrey.sts index 4f754f6e..2aed19ba 100644 --- a/org.simantics.sysdyn.tests/src/org/simantics/sysdyn/tests/scripts/ImportModel_PredatorAndLimitedPrey.sts +++ b/org.simantics.sysdyn.tests/src/org/simantics/sysdyn/tests/scripts/ImportModel_PredatorAndLimitedPrey.sts @@ -6,3 +6,5 @@ >exp = fromJust $ possibleResourceChild m "Experiment" >id = activateExperiment exp >run id +>withinEpsilon (lastValue exp id "/prey") 0.998 0.001 +True \ No newline at end of file diff --git a/org.simantics.sysdyn.tests/src/org/simantics/sysdyn/tests/scripts/ImportModel_ResourceExploitationUseRecycling.sts b/org.simantics.sysdyn.tests/src/org/simantics/sysdyn/tests/scripts/ImportModel_ResourceExploitationUseRecycling.sts index dca003ed..9dc029bd 100644 --- a/org.simantics.sysdyn.tests/src/org/simantics/sysdyn/tests/scripts/ImportModel_ResourceExploitationUseRecycling.sts +++ b/org.simantics.sysdyn.tests/src/org/simantics/sysdyn/tests/scripts/ImportModel_ResourceExploitationUseRecycling.sts @@ -6,3 +6,5 @@ >exp = fromJust $ possibleResourceChild m "Experiment" >id = activateExperiment exp >run id +>withinEpsilon (lastValue exp id "/Resource Demand") 9.243 0.001 +True \ No newline at end of file diff --git a/org.simantics.sysdyn.tests/src/org/simantics/sysdyn/tests/scripts/ImportModel_TouristsEnvironmentsAndHotelFacilities.sts b/org.simantics.sysdyn.tests/src/org/simantics/sysdyn/tests/scripts/ImportModel_TouristsEnvironmentsAndHotelFacilities.sts index f77a497b..8bfd516f 100644 --- a/org.simantics.sysdyn.tests/src/org/simantics/sysdyn/tests/scripts/ImportModel_TouristsEnvironmentsAndHotelFacilities.sts +++ b/org.simantics.sysdyn.tests/src/org/simantics/sysdyn/tests/scripts/ImportModel_TouristsEnvironmentsAndHotelFacilities.sts @@ -6,3 +6,5 @@ >exp = fromJust $ possibleResourceChild m "Experiment" >id = activateExperiment exp >run id +>withinEpsilon (lastValue exp id "/Tourists") 2674.532 0.001 +True \ No newline at end of file -- 2.47.1