Skip to content

Instantly share code, notes, and snippets.

@rwngallego
Last active March 9, 2017 06:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rwngallego/1a516188a3542dd5ec46c855c89ef0e5 to your computer and use it in GitHub Desktop.
Save rwngallego/1a516188a3542dd5ec46c855c89ef0e5 to your computer and use it in GitHub Desktop.
Testing the all_together.erl file
%%%%%% Testing %%%%%%
% Copy and paste the following content into the erl console
Circle = {circle, 45}.
Rectangle = {rectangle, 5, 7}.
RightTriangle = {right_triangle, 3, 4, 5}.
all_together:perimeter(Circle).
all_together:perimeter(Rectangle).
all_together:perimeter(RightTriangle).
all_together:area(Circle).
all_together:area(Rectangle).
all_together:area(RightTriangle).
all_together:enclose(Circle).
all_together:enclose(Rectangle).
all_together:enclose(RightTriangle).
all_together:bits(7).
all_together:bits(8).
all_together:bits_tail(7).
all_together:bits_tail(8).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment