#1 Boilerplate method for getExponentiations missing parameter.

Açık
woat tarafından 8 yıl önce kere açıldı · 1 yorum
woat 8 yıl önce olarak yorumlandı

README states:

Given four integers, start, stop, step, and exponent, return a String concatenation of all values, raised to the specified exponent, between start up to and not including stop, incrementing by the specified step.

However in test cases and the boilerplate class it is missing the step parameter:

//NumbersUtilitiesTest.java

 @Test
    public void testGetExponentiationNumbersForSquare() {
        // : Given
        String expected = "4916253649";
        int start = 2;
        int stop = 7;
        int exponent = 2;

        // : When
        String actual = NumberUtilities.getExponentiations(start, stop, exponent);

        // : Then
        Assert.assertEquals(expected, actual);
    }
    
    
    @Test
    public void testGetExponentiationNumbersForCube() {
        // : Given
        String expected = "182764";
        int start = 1;
        int stop = 4;
        int exponent = 3;

        // : When
        String actual = NumberUtilities.getExponentiations(start, stop, exponent);

        // : Then
        Assert.assertEquals(expected, actual);
    }
README states: >Given four integers, `start`, `stop`, `step`, and `exponent`, return a `String` concatenation of all values, raised to the specified `exponent`, between `start` up to and not including `stop`, incrementing by the specified `step`. However in test cases and the boilerplate class it is missing the `step` parameter: ```java //NumbersUtilitiesTest.java @Test public void testGetExponentiationNumbersForSquare() { // : Given String expected = "4916253649"; int start = 2; int stop = 7; int exponent = 2; // : When String actual = NumberUtilities.getExponentiations(start, stop, exponent); // : Then Assert.assertEquals(expected, actual); } @Test public void testGetExponentiationNumbersForCube() { // : Given String expected = "182764"; int start = 1; int stop = 4; int exponent = 3; // : When String actual = NumberUtilities.getExponentiations(start, stop, exponent); // : Then Assert.assertEquals(expected, actual); } ```
nhu313 8 yıl önce olarak yorumlandı
Sahibi

thanks for letting me know. I'll fix the read me.

thanks for letting me know. I'll fix the read me.
Bu konuşmaya katılmak için oturum aç.
Etiket Yok
Kilometre Taşı Yok
Atanan Kişi Yok
2 Katılımcı
Yükleniyor...
İptal
Kaydet
Henüz bir içerik yok.