어수선한 다람쥐 창고

  • 홈
  • 태그
  • 방명록

assert 1

Assert.assertEquals(double, double, delta)

JUnit은 기존의 assertEquals(double, double)을 deprecated 처리하고 assertEquals(double, double, delta) 값을 권장하고 있다. 이유는 오차가 delta 값의 범위 내에 있을 경우, 서로 같다고 보고 테스트를 통과할 수 있도록 하기 위해서이다. double은 계산을 거치면 부정확한 값이 된다. https://stackoverflow.com/questions/33274030/why-is-my-assertequals-deprecated-in-junit/33274105

software engineering/web 2019.08.14
1
더보기
프로필사진

도토리 줍는 중

  • 전체 (38)
    • today I thought (3)
    • software engineering (33)
      • ready queue (0)
      • introduction (0)
      • web (20)
      • network (1)
      • os (0)
      • database (4)
      • devops (5)
      • design pattern (0)
      • etc (3)
    • inspiration (2)
      • lesson (1)
      • activity (0)
      • art (0)
      • reading (1)

최근글과 인기글

  • 최근글
  • 인기글

최근댓글

Archives

Tag

파괴적인 명령어, REACT_APP_, PostgreSQL, react.js, A component is changing a controlled input of type text to be uncontrolled., query, 애플❤️, ERROR: Maven JVM terminated unexpectedly with exit code 137, Spring, 리액트, 스프링 만세, View 생성 쿼리, maven, JavaScript, Java, ERR_UPLOAD_FILE_CHANGED, AOP, JPA, 쿼리 검색, 안드로이드 왕초보,

Copyright © Kakao Corp. All rights reserved.

티스토리툴바