Ad
  • Default User Avatar

    Language?

  • Custom User Avatar

    the entire pair [3, 7] appears earlier than [5, 5].

  • Custom User Avatar

    completed the initial tests but when I try to submit I fail for reasons of what seems to be an output of the deck size

  • Custom User Avatar

    The test cases people contributed for Haskell […] are a bit strange

    The test cases in Haskell simply generate a list of random words.

  • Custom User Avatar

    I created simple test cases.

    import org.junit.Assert;
    import org.junit.Test;

    public class TestCaffeineBuzz {
    @Test
    public void testOutputJava() {
    Assert.assertEquals("Java", CaffeineBuzz.caffeineBuzz(3));
    }

    @Test
    public void testOutputJavaScript() {
    	Assert.assertEquals("JavaScript", CaffeineBuzz.caffeineBuzz(6));
    }
    
    @Test
    public void testOutputCoffeeScript() {
    	Assert.assertEquals("CoffeeScript", CaffeineBuzz.caffeineBuzz(12));
    }
    
    @Test
    public void testOutputMochaMissing() {
    	Assert.assertEquals("mocha_missing!", CaffeineBuzz.caffeineBuzz(1));
    }
    

    }

  • Default User Avatar

    The test cases people contributed for Haskell, and particularly Java are a bit strange. The original kata is string in, string out. I think following that model might help you with the Java test cases.

  • Custom User Avatar

    Confused about the "testEmptyArg" part of the tester. It seems to ignore the null I have my code return of the string is empty.

  • Custom User Avatar

    The test class area is empty and i'm not sure how to write the test class like the other katas. Any help?