Algorithms and OOD (CSC 207 2013F) : EBoards

CSC207.01 2013F, Class 05: Unit Testing


Overview

Admin

Questions on HW2

A few remaining notes on Git

A few notes on unit testing

An example: Testing exponentiation

    /**
     * Compute x^n
     * @pre
     *   x^n < Integer.MAX_VALUE
     *   x^n > Integer.MIN_VALUE
     */
     int expt(int x, int n)

A few notes on test-driven development

Skipped

Lab!

Insufficient time. Finish up on your own.

Copyright (c) 2013 Samuel A. Rebelsky.

Creative Commons License

This work is licensed under a Creative Commons Attribution 3.0 Unported License. To view a copy of this license, visit http://creativecommons.org/licenses/by/3.0/ or send a letter to Creative Commons, 543 Howard Street, 5th Floor, San Francisco, California, 94105, USA.