- To complete the method stubs in each of the provided python modules
calculator.py
predicator.py
string_manipulator.py
- To establish familiarity with
- Fork this Repository
- fork this repository to your personal github account
- clone your
forked
repository to your local machine. - Complete steps 2 and 3
git add
your changes to the list of yourcommited
files.git commit
your added files to the list of yourstaged
files.git push
your staged files to your remote repository.- submit a
pull request
which compares Perscholasmaster
to yourmaster
.
- Begin by first ensuring the
main
method in yourperscholas_rocks.py
module prints"Perscholas Rocks!"
upon execution. - Complete each of the method stubs in each of the
main
classes provided.main
classes 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
TestSuite
class to ensure that all tests have 100% success.TestSuite
is 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.py
python -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)