Ad
Code
Diff
  • const parse = (value = '') => {
      // if valid email, return true, else return false
      return true;
    }
    const email = "Yjimenezar001@gmail.com";
    Test.assertEquals(true, parse(email1));
    • const parse = (value = '') => {
    • // if valid email, return true, else return false
    • return true;
    • }
    • }
    • const email = "Yjimenezar001@gmail.com";
    • Test.assertEquals(true, parse(email1));
Code
Diff
  • public class Kata {
        public static int findMax(int[] my_array) {
            // Write a method that returns the largest integer in the list.
            // You can assume that the list has at least one element.
            return 7;
        }
    }
    class SolutionTest {
        @Test
        void testSomething() {
            assertEquals(Kata.findMax(new int[]
    • public class Kata {
    • public static int findMax(int[] my_array) {
    • // Write a method that returns the largest integer in the list.
    • // You can assume that the list has at least one element.
    • return 7;
    • }
    • }
    • }
    • class SolutionTest {
    • @Test
    • void testSomething() {
    • assertEquals(Kata.findMax(new int[]