Skip to content
Snippets Groups Projects
Commit c8866f04 authored by Stuart Marks's avatar Stuart Marks
Browse files

Fix TODOs and indentation of code folds.

parent a698abc9
No related branches found
No related tags found
No related merge requests found
...@@ -186,8 +186,8 @@ public class Exercises { ...@@ -186,8 +186,8 @@ public class Exercises {
// </editor-fold> // </editor-fold>
// Hint 2: // Hint 2:
// <editor-fold defaultstate="collapsed"> // <editor-fold defaultstate="collapsed">
// Use Collectors.joining(). // Use Collectors.joining().
// </editor-fold> // </editor-fold>
/** /**
...@@ -232,8 +232,8 @@ public class Exercises { ...@@ -232,8 +232,8 @@ public class Exercises {
// </editor-fold> // </editor-fold>
// Hint 2: // Hint 2:
// <editor-fold defaultstate="collapsed"> // <editor-fold defaultstate="collapsed">
// Look at java.util.OptionalInt to get the result. // Look at java.util.OptionalInt to get the result.
// </editor-fold> // </editor-fold>
/** /**
...@@ -266,7 +266,7 @@ public class Exercises { ...@@ -266,7 +266,7 @@ public class Exercises {
*/ */
@Test @Ignore @Test @Ignore
public void listOfAllWords() throws IOException { public void listOfAllWords() throws IOException {
List<String> output = null; List<String> output = null; // TODO
assertEquals( assertEquals(
Arrays.asList( Arrays.asList(
...@@ -299,7 +299,7 @@ public class Exercises { ...@@ -299,7 +299,7 @@ public class Exercises {
*/ */
@Test @Ignore @Test @Ignore
public void getLastWord() throws IOException { public void getLastWord() throws IOException {
List<String> result = null; List<String> result = null; // TODO
assertEquals("thee", result); assertEquals("thee", result);
} }
...@@ -551,7 +551,7 @@ public class Exercises { ...@@ -551,7 +551,7 @@ public class Exercises {
@Override public String toString() { return String.format("(%s,%d)", name, legs); } @Override public String toString() { return String.format("(%s,%d)", name, legs); }
} }
List<Animal> result = null; //TODO List<Animal> result = null; // TODO
assertEquals(13, result.size()); assertEquals(13, result.size());
assertTrue(result.contains(new Animal("ibex", 4))); assertTrue(result.contains(new Animal("ibex", 4)));
...@@ -628,7 +628,7 @@ public class Exercises { ...@@ -628,7 +628,7 @@ public class Exercises {
*/ */
@Test @Ignore @Test @Ignore
public void bigFactorial() { public void bigFactorial() {
BigInteger result = BigInteger.ONE; BigInteger result = BigInteger.ONE; // TODO
assertEquals(new BigInteger("51090942171709440000"), result); assertEquals(new BigInteger("51090942171709440000"), result);
} }
......
...@@ -242,8 +242,8 @@ public class Exercises { ...@@ -242,8 +242,8 @@ public class Exercises {
// </editor-fold> // </editor-fold>
// Hint 2: // Hint 2:
// <editor-fold defaultstate="collapsed"> // <editor-fold defaultstate="collapsed">
// Use Collectors.joining(). // Use Collectors.joining().
// </editor-fold> // </editor-fold>
/** /**
...@@ -300,8 +300,8 @@ public class Exercises { ...@@ -300,8 +300,8 @@ public class Exercises {
// </editor-fold> // </editor-fold>
// Hint 2: // Hint 2:
// <editor-fold defaultstate="collapsed"> // <editor-fold defaultstate="collapsed">
// Look at java.util.OptionalInt to get the result. // Look at java.util.OptionalInt to get the result.
// </editor-fold> // </editor-fold>
/** /**
...@@ -343,7 +343,7 @@ public class Exercises { ...@@ -343,7 +343,7 @@ public class Exercises {
*/ */
@Test @Test
public void listOfAllWords() throws IOException { public void listOfAllWords() throws IOException {
//UNCOMMENT//List<String> output = null; //UNCOMMENT//List<String> output = null; // TODO
//BEGINREMOVE //BEGINREMOVE
List<String> output = List<String> output =
reader.lines() reader.lines()
...@@ -383,7 +383,7 @@ public class Exercises { ...@@ -383,7 +383,7 @@ public class Exercises {
*/ */
@Test @Test
public void getLastWord() throws IOException { public void getLastWord() throws IOException {
//UNCOMMENT//List<String> result = null; //UNCOMMENT//List<String> result = null; // TODO
//BEGINREMOVE //BEGINREMOVE
String result = String result =
reader.lines() reader.lines()
...@@ -705,7 +705,7 @@ public class Exercises { ...@@ -705,7 +705,7 @@ public class Exercises {
@Override public String toString() { return String.format("(%s,%d)", name, legs); } @Override public String toString() { return String.format("(%s,%d)", name, legs); }
} }
//UNCOMMENT//List<Animal> result = null; //TODO //UNCOMMENT//List<Animal> result = null; // TODO
//BEGINREMOVE //BEGINREMOVE
// List<Animal> result = // List<Animal> result =
...@@ -815,7 +815,7 @@ public class Exercises { ...@@ -815,7 +815,7 @@ public class Exercises {
*/ */
@Test @Test
public void bigFactorial() { public void bigFactorial() {
//UNCOMMENT//BigInteger result = BigInteger.ONE; //UNCOMMENT//BigInteger result = BigInteger.ONE; // TODO
//BEGINREMOVE //BEGINREMOVE
BigInteger result = BigInteger result =
LongStream.rangeClosed(1L, 21L) LongStream.rangeClosed(1L, 21L)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment