package com.example.playground.monadic.parser.combinators;

import org.junit.Test;

import static com.example.playground.monadic.parser.combinators.ParserResult.parserResultList;
import static org.hamcrest.Matchers.equalTo;
import static org.hamcrest.Matchers.is;
import static org.junit.Assert.assertThat;

public class UpperParserTest {
    @Test
    public void shouldParseOnlyLowerCasedChars() {
        final Parser parser = Parsers.upper();

        assertThat(parser.parse("World"), is(equalTo(parserResultList("W", "orld"))));
    }
}

Add upper parser test