Git Product home page Git Product logo

lx02's Introduction

適当なディレクトリで以下のコマンドを実行すると lx02 という名前のディレクトリが作成され,そのなかに実習教材が展開されます.

git clone https://github.com/titech-is-cs115/lx02.git

今回の課題のテーマはテスト駆動開発です.テスト駆動開発では,以下のステップで作業を進めます.

  1. プログラムを書く前に,きちんとしたテストを完成する.
  2. テストを実行し,コケたところから一つずつコードの修正をして,一個ずつ失敗したテストを減らしていく
  3. 途中でテストのバグを見つけたら(テストの記述が間違っていたり,本来,必要なテストが書かれていなかった場合)テストの修正や追加を行います.
  4. すべてのテストがきれいに完了したらプログラムは完成

閏年

授業で解説した順番にテスト駆動開発を実施しなさい.

package leapyear

src/a-leapyear.scala  // プログラム
test/a-leapyear.scala // テスト
  • 授業中に完了すること.
  • すべてのテストをパスしたらTAに確認してもらって下さい.
  • 提出不要
  • みんなの知恵を求めたくなったら,ココをクリック

パズル

package puzzle

src/b-puzzle.scala  // プログラム
test/b-puzzle.scala // テスト

lx02's People

Contributors

wakita avatar

Watchers

 avatar

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.