240517 TIL

나고수·2024년 5월 17일
0

2024 TIL

목록 보기
5/94
post-thumbnail

① 배운 것
1. 마지막 글자에 받침이 있는지 확인하는 다트 코드
그룹으로 묶어서 테스트 코드작성

import 'package:test/test.dart';void main() {
  
  group('calculator', () {
    Calculator cal = Calculator();test('add should be equal to a + b', () {
      expect(cal.add(20, 30), 50);
    });test('minus should be equal to a - b', () {
      expect(cal.minus(30, 20), 10);
    });test('square should be equal to a * a', () {
      expect(cal.square(10), 10 * 10);
    });
  });
  
}
  1. 오늘 한 일 - 비슷한 주제의 api를 여러개 받지 말고 한 api로 통합해서 응답받음

② 회고 (restropective)
크게 어려운 부분은 없었음.
전에 회사에서 경험한것 (어디까지는 내가 결정해도 되고 어디까지는 내가 물어봐야하는지)가 도움이 되는 것 같다.

③ 개선을 위한 방법
오늘은 다 잘한듯.

profile
되고싶다

0개의 댓글