foxygit / fake-08-xbox360 Log in
commit 9a82c17ff6005c716fa7506e6529b0d9c9fc7bfc
Author:     jtothebell <j.to.the.bell@gmail.com>
AuthorDate: Mon Aug 31 21:53:26 2020 -0600
Commit:     jtothebell <j.to.the.bell@gmail.com>
CommitDate: Tue Sep 15 17:09:08 2020 -0600

    Add first circ() test
---
 test/graphicstests.cpp | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/test/graphicstests.cpp b/test/graphicstests.cpp
index c7fec91..83753b1 100644
--- a/test/graphicstests.cpp
+++ b/test/graphicstests.cpp
@@ -301,6 +301,24 @@ TEST_CASE("graphics class behaves as expected") {

         checkPoints(graphics, expectedPoints);
     }
+    SUBCASE("circ({ox}, {oy}) uses pen color and radius of 4") {
+        graphics->cls();
+        graphics->circ(40, 40);
+
+        //quarter circle from 12 oclock to 3 oclock
+        std::vector<coloredPoint> expectedPoints = {
+            {39, 36, 7},
+            {40, 36, 7},
+            {41, 36, 7},
+            {42, 37, 7},
+            {43, 37, 7},
+            {43, 38, 7},
+            {44, 39, 7},
+            {44, 40, 7}
+        };
+
+        checkPoints(graphics, expectedPoints);
+    }