22 lines
		
	
	
		
			415 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			415 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| import unittest
 | |
| 
 | |
| from Ex4 import computeNbrOfDifferentSequences
 | |
| 
 | |
| 
 | |
| class MyTestCase(unittest.TestCase):
 | |
|     def test_simple1(self):
 | |
|         self.assertEqual(
 | |
|             computeNbrOfDifferentSequences(1, 6, 3),
 | |
|             1
 | |
|         )
 | |
| 
 | |
|     def test_simple2(self):
 | |
|         self.assertEqual(
 | |
|             computeNbrOfDifferentSequences(2, 6, 7),
 | |
|             6
 | |
|         )
 | |
| 
 | |
| 
 | |
| if __name__ == '__main__':
 | |
|     unittest.main()
 |