Skip to content

Develop #156

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
May 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ class Problem0000Test {
@Test void problem0000() {

Integer answer = null;
// Integer input = 0;
Integer solutionFound = Problem0000.problem0000();

assertEquals(answer, solutionFound,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ void problem0023smallCase1(

Integer solutionFound = Problem0023.problem0023(inputUnderLimit, inputSuperLimit);

String log = String.format("Problem 0023 {0} answer must be: {1}", testCase, answer);
String log = String.format("Problem 0023 %s answer must be: %d", testCase, answer);
assertEquals(answer, solutionFound, log);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,13 @@ class BigNumTest {
solutionFound.toArray()
);

solutionFound = solutionFound.bigSum(new BigNum(6));
BigNum solutionFoundB = new BigNum(input);
solutionFoundB.bigSum(solutionFound);

assertArrayEquals(
expectedAnswer,
solutionFoundB.toArray()
);
}

@Test void bigMultiplyRowToBigNumTest() {
Expand Down Expand Up @@ -102,8 +107,6 @@ class BigNumTest {
new Integer[]{ 8, 9, 9, 1 },
BigNum.bigMultiplyRowToBigNum("999", 9).toArray()
);
solutionFound = solutionFound.bigSum(new BigNum(6));

}

@Test void bigMultiplyTest() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,6 @@ private class PalindromTestCase {
}
}

// @Test void instanceCaseTest() {
// Palindrome classUnderTest = new Palindrome();

// assertNotNull(classUnderTest);
// assertInstanceOf(
// Palindrome.class,
// classUnderTest,
// String.format("Must be an instance of %s", Palindrome.class));
// }

@Test void listOfPalindromBorderCaseTest() {

PalindromTestCase[] testCases = {
Expand All @@ -37,6 +27,4 @@ private class PalindromTestCase {
assertEquals(testCase.answer, Palindrome.isPalindrome(testCase.input));
}
}


}
Loading