diff --git a/main.py b/main.py index 58dcf72b2b5c1e99ed5d01eb2b0f60347cb5fdec..e5e2b3a28d3ccb370e13ed427bcd2b9a8f418a2a 100644 --- a/main.py +++ b/main.py @@ -1,7 +1,7 @@ """ Date: 09-16-19 Class: CS5310 -Assignment: InClass03 - Custom Implementation of a stack. +Assignment: InClass03 - Custom Stack and Queue Implementation. Author: Brandon Rodriguez diff --git a/pytests/resources/test_queue.py b/pytests/resources/test_queue.py new file mode 100644 index 0000000000000000000000000000000000000000..a31d769bcf4b90e8830faedd1e4c7da14197d0d0 --- /dev/null +++ b/pytests/resources/test_queue.py @@ -0,0 +1,22 @@ +""" +Date: 09-16-19 +Class: CS5310 +Assignment: Custom Stack and Queue Implementation. +Author: Brandon Rodriguez + + +PyTests for custom Queue implementation. +""" + +# System Imports. + +# User Class Imports. +from resources.stack import Stack + + + +class TestStack(): + test_stack = Stack() + + def test_(self): + pass diff --git a/pytests/resources/test_stack.py b/pytests/resources/test_stack.py index 2328e93d404be8142d5d5c339062ed2a0365d681..594543bc3fee6f5da0cc9c2be76608235ecfb650 100644 --- a/pytests/resources/test_stack.py +++ b/pytests/resources/test_stack.py @@ -1,7 +1,7 @@ """ Date: 09-16-19 Class: CS5310 -Assignment: InClass03 - Custom Implementation of a stack. +Assignment: Custom Stack and Queue Implementation. Author: Brandon Rodriguez diff --git a/readme.md b/readme.md index efcee6253dc9c06f3efd5f88bdfa9ec31e3b79cd..5407c1a59c164303ef9ad082fd96a9c925964e38 100644 --- a/readme.md +++ b/readme.md @@ -1,8 +1,9 @@ -# Custom Stack Implementation +# Python - Custom Stack and Queue Implementation ## Description -In class example of a custom stack implementation. +Implementation of custom Stack and Queue data structures. +Includes both Unittesting and PyTest testing, to prove knowledge of both. ## Python Environment diff --git a/resources/logging.py b/resources/logging.py index 38627d8536464efb038e94fb3bbfcfeea56b3fcd..47e39a0beb9d9134bcd7c5957a51629ea98877fa 100644 --- a/resources/logging.py +++ b/resources/logging.py @@ -1,7 +1,7 @@ """ Date: 09-16-19 Class: CS5310 -Assignment: InClass03 - Custom Implementation of a stack. +Assignment: Custom Stack and Queue Implementation. Author: Brandon Rodriguez diff --git a/resources/queue.py b/resources/queue.py new file mode 100644 index 0000000000000000000000000000000000000000..341de3ee89616888732a3e16b911479a26f9eee8 --- /dev/null +++ b/resources/queue.py @@ -0,0 +1,13 @@ +""" +Date: 09-16-19 +Class: CS5310 +Assignment: Custom Stack and Queue Implementation. +Author: Brandon Rodriguez + + +Custom Queue implementation. +""" + + +class Queue(): + pass diff --git a/resources/stack.py b/resources/stack.py index ee63fdde2a217aebf575101f57bcd0f77f62b435..2b90c660faadeb35e6abc41acbaa5775a90e8ca2 100644 --- a/resources/stack.py +++ b/resources/stack.py @@ -1,7 +1,7 @@ """ Date: 09-16-19 Class: CS5310 -Assignment: InClass03 - Custom Implementation of a stack. +Assignment: Custom Stack and Queue Implementation. Author: Brandon Rodriguez diff --git a/unittests/resources/queue.py b/unittests/resources/queue.py new file mode 100644 index 0000000000000000000000000000000000000000..8cbd81fa275c86a7ae8df7cc6f3b84b8fb170258 --- /dev/null +++ b/unittests/resources/queue.py @@ -0,0 +1,24 @@ +""" +Date: 09-16-19 +Class: CS5310 +Assignment: Custom Stack and Queue Implementation. +Author: Brandon Rodriguez + + +UnitTests for custom Stack implementation. +""" + + +# System Imports. +import unittest + +# User Class Imports. +from resources.queue import Queue + + +class TestStack(unittest.TestCase): + def setUp(self): + self.test_stack = Queue() + + def test_(self): + pass diff --git a/unittests/resources/stack.py b/unittests/resources/stack.py index 1c06a7dce79dc59f2deadcfea678819be7acb20c..2dfe92794623b53f20ad9427245d320ab4392e47 100644 --- a/unittests/resources/stack.py +++ b/unittests/resources/stack.py @@ -1,7 +1,7 @@ """ Date: 09-16-19 Class: CS5310 -Assignment: InClass03 - Custom Implementation of a stack. +Assignment: Custom Stack and Queue Implementation. Author: Brandon Rodriguez