<commit_before><commit_msg>Created test_stack, add fixtures for empty and populated stack and add init test.<commit_after># Test file for stack.py
# Authors Mark, Efrain, Henry

import pytest
import stack as st

def test_init():
    """Test stack constructor."""
    a = st.Stack()
    assert isinstance(a, st.Stack)

def test_push(populated_stack):
    """Test push function, with empty and populated stacks."""



@pytest.fixture(scope='function')
def empty_stack(request):
    empty = st.Stack()
    return empty

@pytest.fixture(scope='function')
def populated_stack(request):
    populated = st.Stack()
    populated.push('first')
    populated.push('second')
    populated.push('third')
    populated.push('four')
    return populated
{'fraction_non_alphanumeric': 0.12162162162162163, 'fraction_numerical': 0.0, 'mean_word_length': 4.369565217391305, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3984020', 'n_tokens_mistral': 227, 'n_tokens_neox': 221, 'n_words': 65}