- To complete the method stubs in each of the provided python modules
calculator.pypredicator.pystring_manipulator.py
- To establish familiarity with
- Fork this Repository
- fork this repository to your personal github account
- clone your
forkedrepository to your local machine. - Complete steps 2 and 3
git addyour changes to the list of yourcommitedfiles.git commityour added files to the list of yourstagedfiles.git pushyour staged files to your remote repository.- submit a
pull requestwhich compares Perscholasmasterto yourmaster.
- Begin by first ensuring the
mainmethod in yourperscholas_rocks.pymodule prints"Perscholas Rocks!"upon execution. - Complete each of the method stubs in each of the
mainclasses provided.mainclasses are located insrc.main.java.com.github.perscholas.java_fundamentals- There are comments above each method stub to describe the expected behavior.
- Upon completion, open and run the
TestSuiteclass to ensure that all tests have 100% success.TestSuiteis located insrc.main.java.com.github.perscholas.java_fundamentals
- The purpose of this animation is to demonstrate how to
- clone this project from the Github Web interface to your local machine
- navigate to the root directory of the project
- open the newly cloned project from your local machine in PyCharm
- open a module to be edited (
calculator.py) - run corresponding tests for the module to be edited (
calculator_test.py)
- The purpose of this animation is to demonstrate how to
- clone this project from the Github Web interface to your local machine
- navigate to the root directory of the project
- using
unittest, run all python files with a prefix of_test.pypython -m unittest discover -s ./src/test/ -p '*_test.py'
- A predicate is a clause which states something about a subject. (e.g., is assigning in "Leon is assigning homework")
- Ensure each of the test cases passes successfully in the class predicator_test.py by completing each of the method stubs in the class predicator.py.
- Method Stubs to be completed
is_greater_than_5(some_value)is_greater_than_8(some_value)is_less_than_4(some_value)is_less_than_1(some_value)
- Ensure each of the test cases passes successfully in the class calculator_test.py by completing each of the method stubs in the class calculator.py.
- Method Stubs to be completed
add(first_value, second_value)subtract(first_value, second_value)divide(first_value, second_value)multiply(first_value, second_value)
- Ensure each of the test cases passes successfully in the class string_evaluator_test.py by completing each of the method stubs in the class string_evaluator.py.
- Method Stubs to be completed
get_hello_world()concatenate(first_value, second_value)substring_inclusive(string_to_fetch_from, starting_index, ending_index)substring_exclusive(string_to_fetch_from, starting_index, ending_index)compare(first_value, second_value)get_middle_character(string_to_fetch_from)get_first_word(string_to_fetch_from)get_second_word(string_to_fetch_from)reverse(string_to_reverse)

