Coder Social home page Coder Social logo

blackjack-with-tdd's People

Contributors

bell204 avatar

Watchers

 avatar

blackjack-with-tdd's Issues

Test method naming

주석으로 해당 테스트가 뭘하는지 적으셨는데,

함수명으로 무슨 테스트인지 적으면 굳이 주석을 달 필요도 없고, 코드 보는 사람이 주석을 읽을 필요도 없을꺼 같네요.

e.g.
ShouldBeTwoUsers()
ShouldHaveTwoCards()

그리고 위너 구하는건, 이미 내부자체에서 테스트가 진행되니, 제대로 테스트가 진행됐는지 알수가 없고,
차라리 카드를 하드코드 하게 줘서, (한명은 16, 한명은 19) 19가 당연히 이긴 결과가 나오게 명확하게 하는게 좀더 보기 좋을꺼같아요.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.