diff --git a/.flutter-plugins b/.flutter-plugins
new file mode 100644
index 0000000..74298ec
--- /dev/null
+++ b/.flutter-plugins
@@ -0,0 +1,4 @@
+# This is a generated file; do not edit or check into version control.
+shared_preferences=/Users/luna/.pub-cache/hosted/pub.dartlang.org/shared_preferences-0.5.6+1/
+shared_preferences_macos=/Users/luna/.pub-cache/hosted/pub.dartlang.org/shared_preferences_macos-0.0.1+5/
+shared_preferences_web=/Users/luna/.pub-cache/hosted/pub.dartlang.org/shared_preferences_web-0.1.2+3/
diff --git a/.flutter-plugins-dependencies b/.flutter-plugins-dependencies
new file mode 100644
index 0000000..4f39f84
--- /dev/null
+++ b/.flutter-plugins-dependencies
@@ -0,0 +1 @@
+{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"shared_preferences","path":"/Users/luna/.pub-cache/hosted/pub.dartlang.org/shared_preferences-0.5.6+1/","dependencies":[]}],"android":[{"name":"shared_preferences","path":"/Users/luna/.pub-cache/hosted/pub.dartlang.org/shared_preferences-0.5.6+1/","dependencies":[]}],"macos":[{"name":"shared_preferences_macos","path":"/Users/luna/.pub-cache/hosted/pub.dartlang.org/shared_preferences_macos-0.0.1+5/","dependencies":[]}],"linux":[],"windows":[],"web":[{"name":"shared_preferences_web","path":"/Users/luna/.pub-cache/hosted/pub.dartlang.org/shared_preferences_web-0.1.2+3/","dependencies":[]}]},"dependencyGraph":[{"name":"shared_preferences","dependencies":["shared_preferences_macos","shared_preferences_web"]},{"name":"shared_preferences_macos","dependencies":[]},{"name":"shared_preferences_web","dependencies":[]}],"date_created":"2020-02-17 18:53:44.391856","version":"1.14.6"}
\ No newline at end of file
diff --git a/.idea/eightQueens.iml b/.idea/eightQueens.iml
index de9fce8..dbfb99b 100644
--- a/.idea/eightQueens.iml
+++ b/.idea/eightQueens.iml
@@ -3,6 +3,9 @@
+
+
+
@@ -11,5 +14,6 @@
+
\ No newline at end of file
diff --git a/.idea/libraries/Flutter_Plugins.xml b/.idea/libraries/Flutter_Plugins.xml
new file mode 100644
index 0000000..f58978a
--- /dev/null
+++ b/.idea/libraries/Flutter_Plugins.xml
@@ -0,0 +1,10 @@
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index c9dbd98..ea4f69c 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -2,7 +2,8 @@
-
+
+
@@ -19,21 +20,31 @@
-
+
-
+
-
-
+
+
+
+
+
+
+
+
+
+
+
+
@@ -49,6 +60,7 @@
+
@@ -61,6 +73,7 @@
+
@@ -74,6 +87,8 @@
+
+
@@ -84,26 +99,12 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -125,7 +126,7 @@
-
+
@@ -140,23 +141,23 @@
-
-
-
+
+
+
-
-
-
+
+
+
+
+
-
-
@@ -174,15 +175,6 @@
-
-
-
-
-
-
-
-
-
@@ -204,6 +196,15 @@
+
+
+
+
+
+
+
+
+
@@ -220,7 +221,7 @@
-
+
@@ -228,12 +229,12 @@
-
+
-
+
@@ -275,17 +276,32 @@
+
+
+
+
+
+
+
-
+
-
+
-
-
+
+
+
+
+
+
+
+
+
+
diff --git a/test/eight_test.dart b/test/eight_test.dart
index c95f830..33c8381 100644
--- a/test/eight_test.dart
+++ b/test/eight_test.dart
@@ -1,5 +1,6 @@
import 'package:eight_queens/queens.dart';
import 'package:flutter_test/flutter_test.dart';
+import 'package:shared_preferences/shared_preferences.dart';
void main() {
@@ -8,11 +9,13 @@ void main() {
group('Eight Queens algorithm', () {
test('count should be 2 on a 4 piece chessboard', () {
+ SharedPreferences.setMockInitialValues({});
Future future = QueenResolver().solve(4);
expect(future,completion(equals(2)));
});
test('count should be 92 on a 8 piece chessboard', () {
+ SharedPreferences.setMockInitialValues({});
Future future = QueenResolver().solve(8);
expect(future,completion(equals(92)));
});