Package net.emaze.dysfunctional.options

Source Code of net.emaze.dysfunctional.options.PureEitherTest

package net.emaze.dysfunctional.options;

import net.emaze.dysfunctional.testing.O;
import org.junit.Assert;
import org.junit.Test;

public class PureEitherTest {

    @Test
    public void pureYieldsRightEither() {
        final O value = O.ONE;
        final Either<String, O> got = new PureEither<String, O>().perform(value);
        Assert.assertEquals(Maybe.just(O.ONE), got.maybe());
    }
}
TOP

Related Classes of net.emaze.dysfunctional.options.PureEitherTest

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.