Skip to content

Instantly share code, notes, and snippets.

@jcockhren
Created October 15, 2015 00:54
Show Gist options
  • Save jcockhren/e50a1a128d0d0acd2b47 to your computer and use it in GitHub Desktop.
Save jcockhren/e50a1a128d0d0acd2b47 to your computer and use it in GitHub Desktop.
Simple Calculator Chunk 2 - Evaluting Simple Expressions

Simple Calculator Chunk 2 - Evaluting Simple Expressions

Goal

Using Test Driven Development, create a Evaluate class that can evaluate a simple 2-term calculator expression, returning the appropriate answer.

  1. Prove your class can execute the correct operation of a GOOD expression. (If you already have classes for the various math operations, this is easy).
  2. Prove your class can handle a BAD expression.

Questions

  1. Should my Evaluate class print something from the Console? No
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment