Commit 0e642ee2 authored by Ari Trachtenberg's avatar Ari Trachtenberg
Browse files

added lab 5 structure

parent 68abdd0b
Loading
Loading
Loading
Loading
Loading
+23 −7
Original line number Diff line number Diff line
#include <iostream>

// FILE CHECKS
#if __has_include("lab3.cpp")
#define LAB3
#endif
#if __has_include("lab4.cpp")
#if __has_include("lab5.cpp")
#define LAB5
#elif __has_include("lab4.cpp")
#define LAB4
#elif __has_include("lab3.cpp")
#define LAB3
#endif

// HELPERS
@@ -25,7 +26,14 @@ void assertFalse(bool val, std::string failureReport) {

// STUBS

#ifdef LAB4
#ifdef LAB5
void e107();
void p101();
void p102();
void e1112();
void e1116();

#elifdef LAB4
void p88();
void e98();
void p92();
@@ -44,7 +52,9 @@ void e79(); //char* replace_all(const char s[], const char t[], const char u[]);
#endif

// TESTS
#ifdef LAB4
#ifdef LAB5

#elifdef LAB4

#elifdef LAB3
void testE610() {
@@ -76,7 +86,13 @@ void testE79() {

// MAIN
int main() {
#ifdef LAB4
#ifdef LAB5
    e107();
    p101();
    p102();
    e1112();
    e1116();
#elifdef LAB4
    p88();
    e98();
    p92();