4INCENSE / geha-sajang-iOS

1 stars 0 forks source link

Condition Checker 테스트 코드 작성 (정규 표현식) #16

Closed dev-Lena closed 3 years ago

dev-Lena commented 3 years ago

Test Case

ConditionChecker 의 메소드 테스트

To Refactor

처음에 궁금했던 점

  1. String은 ""나 nil이 없다고 하는데... .isEmpty의 의미는?
  2. 공백이나 newline도 isEmpty인가?
  3. "" 이 것도 입력 값으로 취급하나?
  4. 그렇다면 썼다가 지우면 isEmpty 상태일까 아니면 ""라도 값을 가지고 있을까?

참고 문서 iswhitespace allsatisfy empty-strings-in-swift how-to-limit-the-number-of-characters-in-a-uitextfield-or-uitextview