Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import unittest
- 載 測單元
- class A(unittest.TestCase):
- def test_english(self):
- pass
- assert 1 == 1
- class B(unittest.TestCase):
- def test_for(self):
- j = 0
- for i in range(15):
- if i < 5:
- j += 3
- elif 5 <= i < 10:
- j += 2
- else:
- if i == 13:
- break
- j += 1
- assert j == 28
- 類 丙(測單元.測例子):
- 函 測中文(吾):
- 過
- 宣 1 == 1
- 類 丁(測單元.測例子):
- 函 測為(吾):
- j = 0
- 為 i 在 區間(15):
- 如 i < 5:
- j += 3
- 然 5 <= i < 10:
- j += 2
- 另:
- 如 i == 13:
- 斷
- j += 1
- 宣 j == 28
Advertisement
Add Comment
Please, Sign In to add comment