From 659a1f12d935130bf8da4fe14165e4f421ac7c18 Mon Sep 17 00:00:00 2001 From: arthurtspears Date: Sat, 20 Apr 2024 11:16:36 -0700 Subject: Adding basic unit tests to Solution (#2) * all work up until inclass practice * Added Unit Tests Project * Added second unit tests project as example. * Bring up to date for merge --- CST 126/Homework 1/main.cpp | 58 +++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 54 insertions(+), 4 deletions(-) (limited to 'CST 126/Homework 1/main.cpp') diff --git a/CST 126/Homework 1/main.cpp b/CST 126/Homework 1/main.cpp index dd21a1e..e223d37 100644 --- a/CST 126/Homework 1/main.cpp +++ b/CST 126/Homework 1/main.cpp @@ -1,13 +1,63 @@ // Name: Arthur Spears // Class: CST 126 // Date: 3/31/24 -// Assignment: Homework +// Assignment: Homework 1 #include +#include "helpers.hpp" +#include "menu.hpp" +#include -int main() { +using std::cout; +using std::endl; + +struct DailyTemperature +{ + int highTemp{}; + int lowTemp{}; +}; + +enum DayOfTheWeek +{ + Sunday = 0, + Monday, + Tuesday, + Wednesday, + Thursday, + Friday, + Saturday = 6 +}; - std::cout << "Hello world"; +enum Month +{ + January = 1, + February, + March, + April, + May, + June, + July, + August, + September, + October, + November, + December +}; +struct Date +{ + Month month; + uint8_t day; + uint16_t year; +}; + +union FloatIntUnion +{ + float intFloat; + uint32_t uInt; +}; + +int main() { + return 0; -} \ No newline at end of file +} -- cgit v1.2.3