diff --git a/Makefile b/Makefile index 2b7045c..e4e131e 100644 --- a/Makefile +++ b/Makefile @@ -8,7 +8,7 @@ SRC_FILES = main.cpp string_functions.cpp test_suite.cpp ## Adds only the necessary files for build into a .tar.gz file, named appropriately ARCHIVED_FILES = Makefile $(SRC_FILES) $(SRC_FILES:.cpp=.h) $(SRC_FILES:.cpp=.hpp) pack: fmtc - tar --ignore-failed-read -czvf $(TARGET).tar.gz $(shell echo $(ARCHIVED_FILES) | xargs ls -d 2>/dev/null) + tar --ignore-failed-read -czvf $(TARGET).tar.gz string_functions.cpp ## Runs the pack target and then attempts to build & run the program to make sure it functions correctly pack-test: pack diff --git a/main.cpp b/main.cpp index 6c5e9f4..b9efd37 100644 --- a/main.cpp +++ b/main.cpp @@ -1,8 +1,8 @@ /** * @file main.cpp * @author Tyler Beckman (tyler_beckman@mines.edu) - * @brief CSCI200 L3B - A program to test different string modification APIs in - * C++ + * @brief CSCI200 L3B - A program containing string reading and modification + * functions, with unit tests to check many edge cases of the functions * @version 1 * @date 2024-09-21 */ diff --git a/string_functions.cpp b/string_functions.cpp index a68e829..9226f87 100644 --- a/string_functions.cpp +++ b/string_functions.cpp @@ -1,7 +1,5 @@ #include "string_functions.h" -#include - using namespace std; unsigned long string_length(const string STR) { @@ -122,8 +120,6 @@ string string_to_lower(const string STR) { } result[i] = newChar; } - std::cout << "TODO: implement string_to_lower(\"" << STR << "\")" - << std::endl; return result; } @@ -136,8 +132,6 @@ string string_to_upper(const string STR) { } result[i] = newChar; } - std::cout << "TODO: implement string_to_upper(\"" << STR << "\")" - << std::endl; return result; } @@ -150,7 +144,5 @@ int string_compare(const string LHS, const string RHS) { result = -1; } } - std::cout << "TODO: implement string_compare(\"" << LHS << "\", \"" << RHS - << "\")" << std::endl; return result; } \ No newline at end of file