moving the KS solveAgents test
@@ -124,14 +124,6 @@ class testKrusellSmith(unittest.TestCase):
0.4818181818181818
)
- self.economy.solveAgents()
-
- # testing preComputeArrays()
- self.assertAlmostEqual(
- self.agent.mNextArray[5,2,3,0],
- 0.34949309507193055
- )
-
# testing makeGrid()
self.assertAlmostEqual(
self.agent.aGrid[1], 0.05531643953496124
@@ -147,6 +139,14 @@ class testKrusellSmith(unittest.TestCase):
10
)
+ self.economy.solveAgents()
+
+ # testing preComputeArrays()
+ self.assertAlmostEqual(
+ self.agent.mNextArray[5,2,3,0],
+ 0.34949309507193055
+ )
+
self.assertAlmostEqual(
self.economy.agents[0].solution[0].cFunc[0](
10,self.economy.MSS
