This commit is contained in:
Tyler Beckman 2024-09-27 11:31:41 -06:00
parent 5be7b56660
commit 1a01849e8d
Signed by: Ty
GPG key ID: 2813440C772555A4
3 changed files with 3 additions and 11 deletions

View file

@ -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 ## 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) ARCHIVED_FILES = Makefile $(SRC_FILES) $(SRC_FILES:.cpp=.h) $(SRC_FILES:.cpp=.hpp)
pack: fmtc 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 ## Runs the pack target and then attempts to build & run the program to make sure it functions correctly
pack-test: pack pack-test: pack

View file

@ -1,8 +1,8 @@
/** /**
* @file main.cpp * @file main.cpp
* @author Tyler Beckman (tyler_beckman@mines.edu) * @author Tyler Beckman (tyler_beckman@mines.edu)
* @brief CSCI200 L3B - A program to test different string modification APIs in * @brief CSCI200 L3B - A program containing string reading and modification
* C++ * functions, with unit tests to check many edge cases of the functions
* @version 1 * @version 1
* @date 2024-09-21 * @date 2024-09-21
*/ */

View file

@ -1,7 +1,5 @@
#include "string_functions.h" #include "string_functions.h"
#include <iostream>
using namespace std; using namespace std;
unsigned long string_length(const string STR) { unsigned long string_length(const string STR) {
@ -122,8 +120,6 @@ string string_to_lower(const string STR) {
} }
result[i] = newChar; result[i] = newChar;
} }
std::cout << "TODO: implement string_to_lower(\"" << STR << "\")"
<< std::endl;
return result; return result;
} }
@ -136,8 +132,6 @@ string string_to_upper(const string STR) {
} }
result[i] = newChar; result[i] = newChar;
} }
std::cout << "TODO: implement string_to_upper(\"" << STR << "\")"
<< std::endl;
return result; return result;
} }
@ -150,7 +144,5 @@ int string_compare(const string LHS, const string RHS) {
result = -1; result = -1;
} }
} }
std::cout << "TODO: implement string_compare(\"" << LHS << "\", \"" << RHS
<< "\")" << std::endl;
return result; return result;
} }