Skip to content

Latest commit

 

History

History
40 lines (30 loc) · 928 Bytes

File metadata and controls

40 lines (30 loc) · 928 Bytes

Utopian Tree Test Project

Coding challenge for E2 ManageTech.

Task

Write code that will track the growth of a Utopian Tree.

Rules and Constraints

  • A Utopian Tree when planted will have the height of 1 meter.
  • Each year holds 2 growth cycles.
    • Spring - At this time the tree doubles in size.
    • Summer - This seasons yields growth of 1 meter.
  • The Tree is always planted just before the Spring growth cycle. (this could easily be changed with spring and summer panting methods.)
  • A tree can grow no longer than 60 growth cycles
  • The number of test run on a tree cannot exceed 10.

Running the Program

Clone the repo and navigate into the E2-Coding-Challenge directory folder.

Run

ruby program_runner.rb

Follow the commandline instructions

RSPEC

A few rsepc tests built in the rspec folder

E2-Coding-Challenge/rspec/

rspec models_spec.rb