Example #1
0
 def test_outtrain_sibling(self):
     s = SkillSet()
     s.train(['athletics','jumping'], 10)
     s.train(['athletics','running'], 30)
     self.assertEqual(s.exp(['athletics','jumping']), 20)
Example #2
0
 def test_train_parent_twice(self):
     s = SkillSet()
     s.train(['athletics','running'], 10)
     s.train(['athletics','jumping'], 20)
     self.assertEqual(s.exp(['athletics']), 15)
Example #3
0
 def test_train_child_twice(self):
     s = SkillSet()
     s.train(['athletics','running'], 10)
     s.train(['athletics','running'], 50)
     self.assertEqual(s.exp(['athletics','running']), 60)
Example #4
0
 def test_train_twice(self):
     s = SkillSet()
     s.train(['running'], 10)
     s.train(['running'], 20)
     self.assertEqual(s.exp(['running']), 30)