Skip to content
Open
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
16 changes: 8 additions & 8 deletions .besouro/20150930115137755/actions.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
FileOpenedAction 1443603101760 SudokuVerifier.java 75 1 0 0
EditAction 1443603121425 SudokuVerifier.java 116 1 1 0
RefactoringAction 1443603133972 SudokuVerifier.java RENAME verify()=>int verify(String) METHOD
EditAction 1443603167403 SudokuVerifier.java 189 1 1 0
RefactoringAction 1443603212994 TestSudokuVerifier.java ADD void test() METHOD
RefactoringAction 1443603213121 TestSudokuVerifier.java ADD import org.junit.Assert.* IMPORT
RefactoringAction 1443603213283 TestSudokuVerifier.java ADD TestSudokuVerifier.java CLASS
FileOpenedAction 1443603215695 TestSudokuVerifier.java 202 1 1 0
FileOpenedAction 1443603101760 SudokuVerifier.java 75 1 0 0
EditAction 1443603121425 SudokuVerifier.java 116 1 1 0
RefactoringAction 1443603133972 SudokuVerifier.java RENAME verify()=>int verify(String) METHOD
EditAction 1443603167403 SudokuVerifier.java 189 1 1 0
RefactoringAction 1443603212994 TestSudokuVerifier.java ADD void test() METHOD
RefactoringAction 1443603213121 TestSudokuVerifier.java ADD import org.junit.Assert.* IMPORT
RefactoringAction 1443603213283 TestSudokuVerifier.java ADD TestSudokuVerifier.java CLASS
FileOpenedAction 1443603215695 TestSudokuVerifier.java 202 1 1 0
189 changes: 189 additions & 0 deletions .besouro/20151001113314496/actions.txt

Large diffs are not rendered by default.

186 changes: 186 additions & 0 deletions .besouro/20151001113314496/besouroEpisodes.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,186 @@
1443689273242 test-first 3 878 true
1443689451830 test-addition 1 96 true
1443689451831 test-addition 1 96 true
1443690041054 refactoring 3 154 true
1443690041055 refactoring 3 154 true
1443690041056 refactoring 3 154 true
1443690041057 refactoring 3 154 true
1443690041058 refactoring 3 154 true
1443690041059 refactoring 3 154 true
1443690041060 refactoring 3 154 true
1443690041061 refactoring 3 154 true
1443690041062 refactoring 3 154 true
1443690041063 refactoring 3 154 true
1443690041064 refactoring 3 154 true
1443690041065 refactoring 3 154 true
1443690041066 refactoring 3 154 true
1443690041067 refactoring 2A 154 true
1443690041068 refactoring 3 154 true
1443690041069 refactoring 3 154 true
1443690041070 refactoring 3 154 true
1443690041071 refactoring 3 154 true
1443690041072 refactoring 3 154 true
1443690041073 refactoring 3 154 true
1443690041074 refactoring 3 154 true
1443690041075 refactoring 3 154 true
1443690041076 refactoring 3 154 true
1443690041077 refactoring 3 154 true
1443690041078 refactoring 3 154 true
1443690041079 refactoring 3 154 true
1443690041080 refactoring 3 154 true
1443690041081 refactoring 3 154 true
1443690041082 refactoring 3 154 true
1443690041083 refactoring 3 154 true
1443690041084 refactoring 3 154 true
1443690041085 refactoring 3 154 true
1443690041086 refactoring 3 154 true
1443690041087 refactoring 3 154 true
1443690041088 refactoring 3 154 true
1443690041089 refactoring 3 154 true
1443690041090 refactoring 3 154 true
1443690041091 refactoring 3 154 true
1443690041092 refactoring 3 154 true
1443690041093 refactoring 3 154 true
1443690041094 refactoring 3 154 true
1443690041095 refactoring 3 154 true
1443690041096 refactoring 3 154 true
1443690041097 refactoring 3 154 true
1443690041098 refactoring 3 154 true
1443690041099 refactoring 3 154 true
1443690041100 refactoring 3 154 true
1443690041101 refactoring 3 154 true
1443690041102 refactoring 3 154 true
1443691478359 refactoring 3 1257 true
1443691478360 refactoring 3 1257 true
1443691478361 refactoring 3 1257 true
1443691478362 refactoring 3 1257 true
1443691478363 refactoring 3 1257 true
1443691478364 refactoring 3 1257 true
1443691478365 refactoring 3 1257 true
1443691478366 refactoring 3 1257 true
1443691478367 refactoring 3 1257 true
1443691478368 refactoring 3 1257 true
1443691478369 refactoring 3 1257 true
1443691478370 refactoring 3 1257 true
1443691478371 refactoring 3 1257 true
1443691478372 refactoring 3 1257 true
1443691478373 refactoring 3 1257 true
1443691478374 refactoring 3 1257 true
1443691650483 refactoring 1A 130 true
1443691650484 refactoring 3 130 true
1443691650485 refactoring 3 130 true
1443691650486 refactoring 3 130 true
1443691650487 refactoring 3 130 true
1443691650488 refactoring 3 130 true
1443691650489 refactoring 3 130 true
1443691650490 refactoring 3 130 true
1443691650491 refactoring 3 130 true
1443691650492 refactoring 3 130 true
1443691650493 refactoring 3 130 true
1443691650494 refactoring 3 130 true
1443691650495 refactoring 3 130 true
1443691708829 regression 1 0 true
1443691727261 regression 2 9 true
1443692155742 refactoring 3 264 true
1443692155743 refactoring 3 264 true
1443692155744 refactoring 3 264 true
1443692155745 refactoring 3 264 true
1443692155746 refactoring 3 264 true
1443692155747 refactoring 3 264 true
1443692155748 refactoring 3 264 true
1443692155749 refactoring 3 264 true
1443692155750 refactoring 3 264 true
1443692155751 refactoring 3 264 true
1443692155752 refactoring 3 264 true
1443692155753 refactoring 3 264 true
1443692155754 refactoring 3 264 true
1443692155755 refactoring 3 264 true
1443692155756 refactoring 3 264 true
1443692155757 refactoring 3 264 true
1443692155758 refactoring 3 264 true
1443692155759 refactoring 3 264 true
1443692155760 refactoring 3 264 true
1443692155761 refactoring 3 264 true
1443692155762 refactoring 3 264 true
1443692155763 refactoring 3 264 true
1443692155764 refactoring 3 264 true
1443692155765 refactoring 3 264 true
1443692155766 refactoring 3 264 true
1443692155767 refactoring 3 264 true
1443692155768 refactoring 3 264 true
1443692155769 refactoring 3 264 true
1443692155770 refactoring 3 264 true
1443692155771 refactoring 3 264 true
1443692155772 refactoring 3 264 true
1443692155773 refactoring 3 264 true
1443692155774 refactoring 3 264 true
1443692155775 refactoring 3 264 true
1443692155776 refactoring 3 264 true
1443692155777 refactoring 3 264 true
1443692155778 refactoring 3 264 true
1443692155779 refactoring 3 264 true
1443692155780 refactoring 3 264 true
1443692155781 refactoring 3 264 true
1443692155782 refactoring 3 264 true
1443692155783 refactoring 3 264 true
1443692155784 refactoring 3 264 true
1443692155785 refactoring 3 264 true
1443692155786 refactoring 3 264 true
1443692155787 refactoring 3 264 true
1443692155788 refactoring 3 264 true
1443692155789 refactoring 3 264 true
1443692155790 refactoring 3 264 true
1443695048174 test-first 1 2852 true
1443695048175 test-first 1 2852 true
1443695048176 test-first 1 2852 true
1443695048177 test-first 1 2852 true
1443695048178 test-first 1 2852 true
1443695048179 test-first 1 2852 true
1443695048180 test-first 1 2852 true
1443695048181 test-first 1 2852 true
1443695048182 test-first 1 2852 true
1443695048183 test-first 1 2852 true
1443695048184 test-first 1 2852 true
1443695048185 test-first 1 2852 true
1443695048186 test-first 1 2852 true
1443695048187 test-first 1 2852 true
1443695048188 test-first 1 2852 true
1443695048189 test-first 1 2852 true
1443695048190 test-first 1 2852 true
1443695048191 test-first 1 2852 true
1443695048192 test-first 1 2852 true
1443695048193 test-first 1 2852 true
1443695048194 test-first 1 2852 true
1443695048195 test-first 1 2852 true
1443695048196 test-first 1 2852 true
1443695048197 test-first 1 2852 true
1443695048198 test-first 1 2852 true
1443695048199 test-first 1 2852 true
1443695048200 test-first 1 2852 true
1443695048201 test-first 1 2852 true
1443695048202 test-first 1 2852 true
1443695048203 test-first 1 2852 true
1443695048204 test-first 1 2852 true
1443695048205 test-first 1 2852 true
1443695048206 test-first 1 2852 true
1443695048207 test-first 1 2852 true
1443695048208 test-first 1 2852 true
1443695048209 test-first 1 2852 true
1443695048210 test-first 1 2852 true
1443695048211 test-first 1 2852 true
1443695048212 test-first 1 2852 true
1443695048213 test-first 1 2852 true
1443695048214 test-first 1 2852 true
1443695048215 test-first 1 2852 true
1443695048216 test-first 1 2852 true
1443695048217 test-first 1 2852 true
1443695048218 test-first 1 2852 true
1443695048219 test-first 1 2852 true
1443695048220 test-first 1 2852 true
1443695048221 test-first 1 2852 true
1443695048222 test-first 1 2852 true
1443695048223 test-first 1 2852 true
1443695048224 test-first 1 2852 true
1443695048225 test-first 1 2852 true
1443695320979 production 3 238 false
1443695384586 regression 1 0 true
Empty file.
11 changes: 11 additions & 0 deletions .besouro/20151001113314496/randomHeuristicEpisodes.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
1443689273242 test-first 3 878 true
1443689451830 test-addition 1 96 false
1443690041054 refactoring 3 154 true
1443691478359 refactoring 3 1257 true
1443691650483 refactoring 1A 130 false
1443691708829 regression 1 0 false
1443691727261 regression 2 9 false
1443692155742 refactoring 3 264 true
1443695048174 test-first 1 2852 true
1443695320979 production 3 238 false
1443695384586 regression 1 0 true
Empty file.
11 changes: 11 additions & 0 deletions .besouro/20151001113314496/zorroEpisodes.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
1443689273242 test-first 3 878 true
1443689451830 test-addition 1 178 true
1443690041054 refactoring 3 589 true
1443691478359 refactoring 3 1437 true
1443691650483 refactoring 1A 172 true
1443691708829 regression 1 58 true
1443691727261 regression 2 18 true
1443692155742 refactoring 3 428 true
1443695048174 test-first 1 2892 true
1443695320979 production 3 272 false
1443695384586 regression 1 63 false
14 changes: 7 additions & 7 deletions .classpath
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="con" path="org.eclipse.jdt.junit.JUNIT_CONTAINER/4"/>
<classpathentry kind="output" path="bin"/>
</classpath>
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="con" path="org.eclipse.jdt.junit.JUNIT_CONTAINER/4"/>
<classpathentry kind="output" path="bin"/>
</classpath>
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
/bin/
/bin/
.DS_Store
34 changes: 17 additions & 17 deletions .project
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>Sudoku</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
</projectDescription>
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>Sudoku</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
</projectDescription>
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
# Sudoku
# Sudoku
40 changes: 40 additions & 0 deletions src/org/univoulu/tol/sqatlab/sudoku/SubGrid.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
package org.univoulu.tol.sqatlab.sudoku;

import java.util.ArrayList;
import java.util.Collections;
import java.util.HashSet;
import java.util.Set;

public class SubGrid {
private final Set<Integer> cells;

public SubGrid(String subgrid) {
if (subgrid == null || subgrid.length() != 9 || !subgrid.matches("[0-9]+")) {
throw new IllegalArgumentException("Subgrid must only contain numbers 0-9 and have exactly 9 digits long (was " + subgrid + ")");
}
Set<Integer> temp = new HashSet<>();

for(char c : subgrid.toCharArray()) {
int cell = Character.getNumericValue(c);
temp.add(cell);
}

cells = Collections.unmodifiableSet(temp);
}

public boolean isValid() {
if (cells.size() != 9) {
return false;
}
for(Integer i : cells) {
if (i == null || i < 0 || i > 9) {
return false;
}
}
return true;
}

public Set<Integer> getCells() {
return cells;
}
}
Loading