From 730501508d9c9f55f238d1c2b2cfc1b74c55c141 Mon Sep 17 00:00:00 2001 From: brodriguez8774 <brodriguez8774@gmail.com> Date: Mon, 16 Sep 2019 12:48:28 -0400 Subject: [PATCH] Create initial stack class --- __init__.py | 0 resources/__init__.py | 0 resources/stack.py | 15 +++++++++++++++ tests/__init__.py | 0 tests/resources/__init__.py | 0 tests/resources/stack.py | 29 +++++++++++++++++++++++++++++ 6 files changed, 44 insertions(+) create mode 100644 __init__.py create mode 100644 resources/__init__.py create mode 100644 resources/stack.py create mode 100644 tests/__init__.py create mode 100644 tests/resources/__init__.py create mode 100644 tests/resources/stack.py diff --git a/__init__.py b/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/resources/__init__.py b/resources/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/resources/stack.py b/resources/stack.py new file mode 100644 index 0000000..41d86bd --- /dev/null +++ b/resources/stack.py @@ -0,0 +1,15 @@ +""" +Date: 09-16-19 +Class: CS5310 +Assignment: InClass03 - Custom Implementation of a stack. +Author: Brandon Rodriguez + + +Custom Stack implementation. +""" + + +class Stack(): + """ + Custom stack implementation. + """ diff --git a/tests/__init__.py b/tests/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/tests/resources/__init__.py b/tests/resources/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/tests/resources/stack.py b/tests/resources/stack.py new file mode 100644 index 0000000..33dd055 --- /dev/null +++ b/tests/resources/stack.py @@ -0,0 +1,29 @@ +""" +Date: 09-16-19 +Class: CS5310 +Assignment: InClass03 - Custom Implementation of a stack. +Author: Brandon Rodriguez + + +Tests for custom Stack implementation. +""" + +# System Imports. +import unittest + +# User Class Imports. +from resources.stack import Stack + + +class TestMain(unittest.TestCase): + def setUp(self): + self.test_stack = Stack() + + def test_stack_creation(self): + self.assertTrue(isinstance(self.test_stack, Stack)) + + def test_push(self): + pass + + def test_pop(self): + pass -- GitLab