CRA7C / TradingSystem

CRA 7차 C조
0 stars 0 forks source link

종목 코드 규칙 #13

Closed gk1whd2 closed 3 months ago

gk1whd2 commented 3 months ago
import re
p = re.compile('[ABCK]?[0-9]{6}')
positive_test_case = [
    '005930', 'A005930',
    '000660', 'A000660',
    '123456', 'A123456', 'B123456', 'C123456', 'K123456',
]
negative_test_case = [
    '12345', '1234567', '123456A', 'D123456', '123A456', 'A12345'
]
geniuskey commented 3 months ago

오... 제안 해주신 test case 추가하겠습니다!