Skip to content

Commit

Permalink
test mutiple different shares
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian-B committed Oct 21, 2024
1 parent 9e2ecbe commit 7666539
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions unittests/model_tests/resources_tests/test_resources_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,12 @@ def test_reused_key(self):
with self.assertRaises(PacmanConfigurationException):
sh1 + sh3

sh4 = SharedSDRAM({"bar": var3})
multi4 = MultiRegionSDRAM()
multi4.nest(1, sh1)
multi4.nest(2, sh4)
self.assertEqual(multi4.get_total_sdram(10), 20 + 10 + 30 + 2 * 10)


if __name__ == '__main__':
unittest.main()

0 comments on commit 7666539

Please sign in to comment.