-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
commit 4988926 Author: drew5494 <tassoone@gmail.com> Date: Fri Nov 12 22:48:40 2021 -0500 Add to contributing commit 668851f Author: drew5494 <tassoone@gmail.com> Date: Fri Nov 12 22:44:27 2021 -0500 Add google tester
- Loading branch information
Showing
3 changed files
with
47 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#include "reading.h" | ||
#include <gtest/gtest.h> | ||
// Demonstrate some basic assertions. | ||
using namespace std; | ||
TEST(fileTest, BasicAssertions) | ||
{ | ||
std::string testerTextfile = "the-great-site-generator-sample.txt"; | ||
Reading r; | ||
r.readFile(testerTextfile, 1); | ||
ifstream ifile; | ||
ifile.open("dist/the-great-site-generator-sample.html"); | ||
if (ifile) { | ||
cout << "file exists"; | ||
string line; | ||
for (int i = 0; i < 11; i++) { | ||
std::getline(ifile, line); | ||
} | ||
string first = "<p>The GREAT Site Generator is actually just another simple site generator that can generate static sites based off of text data.</p>"; | ||
EXPECT_EQ(first, line); | ||
} | ||
} | ||
TEST(folderTest, BasicAssertions) | ||
{ | ||
std::string testerTextFolder = "sample"; | ||
Reading r; | ||
r.readFolder(testerTextFolder, 1); | ||
} |