Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # coding=utf-8
- import unittest
- from bar import re_find
- class TestBar(unittest.TestCase):
- def setUp(self):
- self.matrix = [[10, 20, 30, 40],
- [8, 16, 24, 32],
- [6, 12, 18, 24],
- [4, 8, 12, 16]]
- def test_re_find(self):
- self.assertTrue(re_find(self.matrix, 3, 3, 20))
- def test_not_exist(self):
- self.assertFalse(re_find(self.matrix, 3, 3, 11))
Add Comment
Please, Sign In to add comment