0
0
Fork 0

moved Solution to package stream

paul
paul 5 years ago
parent 41d4916360
commit dbec772d37

@ -1,3 +1,5 @@
package stream;
import java.util.List;
import java.util.stream.IntStream;
import java.util.stream.Stream;

@ -1,3 +1,5 @@
package stream;
import java.util.List;
import java.util.Scanner;
import java.util.Spliterator;
@ -5,7 +7,7 @@ import java.util.stream.Collectors;
import java.util.stream.StreamSupport;
/**
* Solution involving a Sukdoku Board, a SudokuVerifier, plus some Stream processing.
* stream.Solution involving a Sukdoku stream.Board, a stream.SudokuVerifier, plus some Stream processing.
**/
class Solution {

@ -1,3 +1,5 @@
package stream;
import java.util.stream.Stream;
public class SudokuVerifier {

@ -1,3 +1,5 @@
package stream;
import java.io.*;
import java.util.stream.Collectors;
@ -34,7 +36,7 @@ class SolutionTest {
}
@ParameterizedTest
@CsvFileSource( resources = "testdata.csv" )
@CsvFileSource( resources = "/testdata.csv" )
void main( @ConvertWith( SudokuConverter.class ) final String input, final String expected ) throws IOException {
// keep original streams
InputStream oldIn = System.in;

@ -1,10 +1,10 @@
sudoku1.txt, true
sudoku2.txt, true
sudoku3.txt, false
sudoku4.txt, true
sudoku5.txt, false
sudoku6.txt, true
sudoku7.txt, true
sudoku8.txt, false
sudoku9.txt, false
sudoku10.txt, false
/sudoku1.txt, true
/sudoku2.txt, true
/sudoku3.txt, false
/sudoku4.txt, true
/sudoku5.txt, false
/sudoku6.txt, true
/sudoku7.txt, true
/sudoku8.txt, false
/sudoku9.txt, false
/sudoku10.txt, false
1 sudoku1.txt /sudoku1.txt true
2 sudoku2.txt /sudoku2.txt true
3 sudoku3.txt /sudoku3.txt false
4 sudoku4.txt /sudoku4.txt true
5 sudoku5.txt /sudoku5.txt false
6 sudoku6.txt /sudoku6.txt true
7 sudoku7.txt /sudoku7.txt true
8 sudoku8.txt /sudoku8.txt false
9 sudoku9.txt /sudoku9.txt false
10 sudoku10.txt /sudoku10.txt false
Loading…
Cancel
Save