diff --git a/monad/index.md b/monad/index.md index 031b899cc..d692e18da 100644 --- a/monad/index.md +++ b/monad/index.md @@ -32,4 +32,4 @@ Use the Monad in any of the following situations * [Design Pattern Reloaded by Remi Forax](https://youtu.be/-k2X7guaArU) * [Brian Beckman: Don't fear the Monad](https://channel9.msdn.com/Shows/Going+Deep/Brian-Beckman-Dont-fear-the-Monads) -* [Monad (functional programming) on Wikipedia] (https://en.wikipedia.org/wiki/Monad_(functional_programming) \ No newline at end of file +* [Monad on Wikipedia](https://en.wikipedia.org/wiki/Monad_(functional_programming) \ No newline at end of file diff --git a/monad/src/test/java/com/iluwatar/monad/MonadTest.java b/monad/src/test/java/com/iluwatar/monad/MonadTest.java index 5ef2ecc69..2c18e25e7 100644 --- a/monad/src/test/java/com/iluwatar/monad/MonadTest.java +++ b/monad/src/test/java/com/iluwatar/monad/MonadTest.java @@ -23,7 +23,7 @@ public class MonadTest { @Test public void testForInvalidAge() { thrown.expect(IllegalStateException.class); - User tom = new User("John", 17, Sex.MALE, "john@qwe.bar"); + User john = new User("John", 17, Sex.MALE, "john@qwe.bar"); Validator.of(tom).validate(User::getName, Objects::nonNull, "name cannot be null") .validate(User::getAge, age -> age > 21, "user is underaged") .get(); @@ -31,7 +31,7 @@ public class MonadTest { @Test public void testForValid() { - User tom = new User("Sarah", 42, Sex.FEMALE, "sarah@det.org"); + User sarah = new User("Sarah", 42, Sex.FEMALE, "sarah@det.org"); User validated = Validator.of(tom).validate(User::getName, Objects::nonNull, "name cannot be null") .validate(User::getAge, age -> age > 21, "user is underaged") .validate(User::getSex, sex -> sex == Sex.FEMALE, "user is not female")