<commit_before>import { Expect, TestCase } from "alsatian";
import { Stack } from "../stack";

export class PushPopTestFixture {

    @TestCase(15)
    @TestCase(20)
    @TestCase("some string")
    @TestCase("another string")
    @TestCase(false)
    @TestCase(true)
    @TestCase(1.25)
    public afterPushPopShouldReturnValue(value: any) {
        let stack = new Stack();

        stack.push(value);

        let popped = stack.pop();

        Expect(popped).toBe(value);
    }

}
<commit_msg>Test that pop gets the top<commit_after>import { Expect, TestCase } from "alsatian";
import { Stack } from "../stack";

export class PushPopTestFixture {

    @TestCase(15)
    @TestCase(20)
    @TestCase("some string")
    @TestCase("another string")
    @TestCase(false)
    @TestCase(true)
    @TestCase(1.25)
    public afterPushPopShouldReturnValue(value: any) {
        let stack = new Stack();

        stack.push(value);

        let popped = stack.pop();

        Expect(popped).toBe(value);
    }

    @TestCase(15)
    @TestCase(20)
    @TestCase("some string")
    @TestCase("another string")
    @TestCase(false)
    @TestCase(true)
    @TestCase(1.25)
    public afterPushPopShouldReturnTopValue(value: any) {
        let stack = new Stack();

        // push some junk to the stack
        stack.push(5);
        stack.push(10);

        stack.push(value);

        let popped = stack.pop();

        Expect(popped).toBe(value);
    }

}

{'fraction_non_alphanumeric': 0.13655172413793104, 'fraction_numerical': 0.016551724137931035, 'mean_word_length': 2.6921119592875318, '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': '3268613', 'n_tokens_mistral': 469, 'n_tokens_neox': 440, 'n_words': 100}