瀏覽代碼

5 methods

William Brown 6 年之前
父節點
當前提交
9694a24648

+ 1
- 0
.idea/misc.xml 查看文件

@@ -7,4 +7,5 @@
7 7
       </list>
8 8
     </option>
9 9
   </component>
10
+  <component name="ProjectRootManager" version="2" project-jdk-name="1.8" project-jdk-type="JavaSDK" />
10 11
 </project>

+ 176
- 242
.idea/workspace.xml 查看文件

@@ -2,58 +2,66 @@
2 2
 <project version="4">
3 3
   <component name="ChangeListManager">
4 4
     <list default="true" id="3455511b-a100-4bbd-b07c-68f009bc8dbc" name="Default" comment="">
5
-      <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" afterPath="$PROJECT_DIR$/.idea/workspace.xml" />
6
-      <change beforePath="$PROJECT_DIR$/README.md" afterPath="$PROJECT_DIR$/README.md" />
5
+      <change afterPath="$PROJECT_DIR$/arraz/.idea/compiler.xml" afterDir="false" />
6
+      <change afterPath="$PROJECT_DIR$/arraz/.idea/libraries/Maven__junit_junit_4_0.xml" afterDir="false" />
7
+      <change afterPath="$PROJECT_DIR$/arraz/.idea/misc.xml" afterDir="false" />
8
+      <change afterPath="$PROJECT_DIR$/arraz/.idea/modules.xml" afterDir="false" />
9
+      <change afterPath="$PROJECT_DIR$/arraz/.idea/vcs.xml" afterDir="false" />
10
+      <change afterPath="$PROJECT_DIR$/arraz/.idea/workspace.xml" afterDir="false" />
11
+      <change beforePath="$PROJECT_DIR$/.idea/misc.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/misc.xml" afterDir="false" />
12
+      <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
13
+      <change beforePath="$PROJECT_DIR$/arraz/arraz.iml" beforeDir="false" afterPath="$PROJECT_DIR$/arraz/arraz.iml" afterDir="false" />
14
+      <change beforePath="$PROJECT_DIR$/arraz/src/main/java/Arraz.java" beforeDir="false" afterPath="$PROJECT_DIR$/arraz/src/main/java/Arraz.java" afterDir="false" />
15
+      <change beforePath="$PROJECT_DIR$/arraz/src/test/java/ArrazTest.java" beforeDir="false" afterPath="$PROJECT_DIR$/arraz/src/test/java/ArrazTest.java" afterDir="false" />
7 16
     </list>
8 17
     <ignored path="$PROJECT_DIR$/arraz/target/" />
9 18
     <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
10
-    <option name="TRACKING_ENABLED" value="true" />
11 19
     <option name="SHOW_DIALOG" value="false" />
12 20
     <option name="HIGHLIGHT_CONFLICTS" value="true" />
13 21
     <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
14 22
     <option name="LAST_RESOLUTION" value="IGNORE" />
15 23
   </component>
24
+  <component name="FUSProjectUsageTrigger">
25
+    <session id="-1803996711">
26
+      <usages-collector id="statistics.lifecycle.project">
27
+        <counts>
28
+          <entry key="project.closed" value="1" />
29
+          <entry key="project.open.time.4" value="2" />
30
+          <entry key="project.opened" value="2" />
31
+        </counts>
32
+      </usages-collector>
33
+      <usages-collector id="statistics.file.types.edit">
34
+        <counts>
35
+          <entry key="JAVA" value="526" />
36
+        </counts>
37
+      </usages-collector>
38
+    </session>
39
+  </component>
16 40
   <component name="FileEditorManager">
17 41
     <leaf SIDE_TABS_SIZE_LIMIT_KEY="375">
18
-      <file leaf-file-name="pom.xml" pinned="false" current-in-tab="false">
19
-        <entry file="file://$PROJECT_DIR$/arraz/pom.xml">
20
-          <provider selected="true" editor-type-id="text-editor">
21
-            <state relative-caret-position="0">
22
-              <caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
23
-              <folding />
24
-            </state>
25
-          </provider>
26
-        </entry>
27
-      </file>
28
-      <file leaf-file-name="Arraz.java" pinned="false" current-in-tab="false">
42
+      <file pinned="false" current-in-tab="false">
29 43
         <entry file="file://$PROJECT_DIR$/arraz/src/main/java/Arraz.java">
30 44
           <provider selected="true" editor-type-id="text-editor">
31
-            <state relative-caret-position="0">
32
-              <caret line="0" column="15" lean-forward="false" selection-start-line="0" selection-start-column="15" selection-end-line="0" selection-end-column="15" />
33
-              <folding />
45
+            <state relative-caret-position="164">
46
+              <caret line="30" column="54" selection-start-line="30" selection-start-column="54" selection-end-line="30" selection-end-column="54" />
47
+              <folding>
48
+                <element signature="e#470#471#0" expanded="true" />
49
+                <element signature="e#527#528#0" expanded="true" />
50
+                <element signature="e#589#590#0" expanded="true" />
51
+                <element signature="e#646#647#0" expanded="true" />
52
+              </folding>
34 53
             </state>
35 54
           </provider>
36 55
         </entry>
37 56
       </file>
38
-      <file leaf-file-name="ArrazTest.java" pinned="false" current-in-tab="false">
57
+      <file pinned="false" current-in-tab="true">
39 58
         <entry file="file://$PROJECT_DIR$/arraz/src/test/java/ArrazTest.java">
40 59
           <provider selected="true" editor-type-id="text-editor">
41
-            <state relative-caret-position="34">
42
-              <caret line="2" column="23" lean-forward="false" selection-start-line="2" selection-start-column="23" selection-end-line="2" selection-end-column="23" />
43
-              <folding />
44
-            </state>
45
-          </provider>
46
-        </entry>
47
-      </file>
48
-      <file leaf-file-name="README.md" pinned="false" current-in-tab="true">
49
-        <entry file="file://$PROJECT_DIR$/README.md">
50
-          <provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
51
-            <state split_layout="SPLIT">
52
-              <first_editor relative-caret-position="306">
53
-                <caret line="18" column="0" lean-forward="true" selection-start-line="18" selection-start-column="0" selection-end-line="18" selection-end-column="0" />
54
-                <folding />
55
-              </first_editor>
56
-              <second_editor />
60
+            <state relative-caret-position="375">
61
+              <caret line="25" column="25" selection-start-line="25" selection-start-column="25" selection-end-line="25" selection-end-column="25" />
62
+              <folding>
63
+                <element signature="imports" expanded="true" />
64
+              </folding>
57 65
             </state>
58 66
           </provider>
59 67
         </entry>
@@ -72,9 +80,6 @@
72 80
     <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
73 81
   </component>
74 82
   <component name="GradleLocalSettings">
75
-    <option name="externalProjectsViewState">
76
-      <projects_view />
77
-    </option>
78 83
     <option name="projectSyncType">
79 84
       <map>
80 85
         <entry key="$USER_HOME$/GitHub/gs-gradle/initial" value="PREVIEW" />
@@ -84,8 +89,9 @@
84 89
   <component name="IdeDocumentHistory">
85 90
     <option name="CHANGED_PATHS">
86 91
       <list>
87
-        <option value="$PROJECT_DIR$/arraz/src/test/java/ArrazTest.java" />
88 92
         <option value="$PROJECT_DIR$/README.md" />
93
+        <option value="$PROJECT_DIR$/arraz/src/main/java/Arraz.java" />
94
+        <option value="$PROJECT_DIR$/arraz/src/test/java/ArrazTest.java" />
89 95
       </list>
90 96
     </option>
91 97
   </component>
@@ -103,23 +109,12 @@
103 109
     </option>
104 110
   </component>
105 111
   <component name="ProjectFrameBounds">
106
-    <option name="x" value="242" />
107
-    <option name="y" value="45" />
108
-    <option name="width" value="1538" />
109
-    <option name="height" value="962" />
112
+    <option name="y" value="22" />
113
+    <option name="width" value="1280" />
114
+    <option name="height" value="739" />
110 115
   </component>
111 116
   <component name="ProjectView">
112
-    <navigator currentView="ProjectPane" proportions="" version="1">
113
-      <flattenPackages />
114
-      <showMembers />
115
-      <showModules />
116
-      <showLibraryContents />
117
-      <hideEmptyPackages />
118
-      <abbreviatePackageNames />
119
-      <autoscrollToSource />
120
-      <autoscrollFromSource />
121
-      <sortByType />
122
-      <manualOrder />
117
+    <navigator proportions="" version="1">
123 118
       <foldersAlwaysOnTop value="true" />
124 119
     </navigator>
125 120
     <panes>
@@ -157,21 +152,20 @@
157 152
           <select />
158 153
         </subPane>
159 154
       </pane>
160
-      <pane id="Scratches" />
161
-      <pane id="PackagesPane" />
162
-      <pane id="AndroidView" />
163 155
       <pane id="Scope" />
156
+      <pane id="PackagesPane" />
164 157
     </panes>
165 158
   </component>
166 159
   <component name="PropertiesComponent">
167
-    <property name="nodejs_interpreter_path.stuck_in_default_project" value="undefined stuck path" />
168
-    <property name="settings.editor.selected.configurable" value="configurable.group.appearance" />
160
+    <property name="GO_FMT" value="false" />
169 161
     <property name="WebServerToolWindowFactoryState" value="false" />
170 162
     <property name="aspect.path.notification.shown" value="true" />
171
-    <property name="last_opened_file_path" value="$PROJECT_DIR$" />
172
-    <property name="jdk.selected.JAVA_MODULE" value="1.8" />
163
+    <property name="com.android.tools.idea.instantapp.provision.ProvisionBeforeRunTaskProvider.myTimeStamp" value="1544046882578" />
173 164
     <property name="com.intellij.testIntegration.createTest.CreateTestDialog.defaultLibrary" value="JUnit4" />
174
-    <property name="GO_FMT" value="false" />
165
+    <property name="jdk.selected.JAVA_MODULE" value="1.8" />
166
+    <property name="last_opened_file_path" value="$PROJECT_DIR$" />
167
+    <property name="nodejs_interpreter_path.stuck_in_default_project" value="undefined stuck path" />
168
+    <property name="settings.editor.selected.configurable" value="configurable.group.appearance" />
175 169
   </component>
176 170
   <component name="RecentsManager">
177 171
     <key name="CreateTestDialog.RecentsKey">
@@ -193,90 +187,85 @@
193 187
       </list>
194 188
     </option>
195 189
   </component>
196
-  <component name="RunManager">
190
+  <component name="RunManager" selected="JUnit.ArrazTest">
197 191
     <configuration default="true" type="Applet" factoryName="Applet">
198
-      <option name="WIDTH" value="400" />
199
-      <option name="HEIGHT" value="300" />
200 192
       <option name="POLICY_FILE" value="$APPLICATION_HOME_DIR$/bin/appletviewer.policy" />
201
-      <module />
193
+      <method v="2">
194
+        <option name="Make" enabled="true" />
195
+      </method>
202 196
     </configuration>
203 197
     <configuration default="true" type="Application" factoryName="Application">
204
-      <extension name="coverage" enabled="false" merge="false" sample_coverage="true" runner="idea" />
205
-      <option name="MAIN_CLASS_NAME" />
206
-      <option name="VM_PARAMETERS" />
207
-      <option name="PROGRAM_PARAMETERS" />
208 198
       <option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" />
209
-      <option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
210
-      <option name="ALTERNATIVE_JRE_PATH" />
211
-      <option name="ENABLE_SWING_INSPECTOR" value="false" />
212
-      <option name="ENV_VARIABLES" />
213
-      <option name="PASS_PARENT_ENVS" value="true" />
214
-      <module name="" />
215
-      <envs />
199
+      <method v="2">
200
+        <option name="Make" enabled="true" />
201
+      </method>
216 202
     </configuration>
217
-    <configuration default="true" type="JUnit" factoryName="JUnit">
218
-      <extension name="coverage" enabled="false" merge="false" sample_coverage="true" runner="idea" />
219
-      <module name="" />
220
-      <option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
221
-      <option name="ALTERNATIVE_JRE_PATH" />
222
-      <option name="PACKAGE_NAME" />
223
-      <option name="MAIN_CLASS_NAME" />
224
-      <option name="METHOD_NAME" />
225
-      <option name="TEST_OBJECT" value="class" />
226
-      <option name="VM_PARAMETERS" value="-ea" />
227
-      <option name="PARAMETERS" />
203
+    <configuration name="ArrazTest" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
204
+      <module name="arraz" />
205
+      <option name="PACKAGE_NAME" value="" />
206
+      <option name="MAIN_CLASS_NAME" value="ArrazTest" />
228 207
       <option name="WORKING_DIRECTORY" value="%MODULE_WORKING_DIR%" />
229
-      <option name="ENV_VARIABLES" />
230
-      <option name="PASS_PARENT_ENVS" value="true" />
231
-      <option name="TEST_SEARCH_SCOPE">
232
-        <value defaultName="singleModule" />
233
-      </option>
234
-      <envs />
235
-      <patterns />
208
+      <method v="2">
209
+        <option name="Make" enabled="true" />
210
+      </method>
236 211
     </configuration>
237
-    <configuration default="true" type="Remote" factoryName="Remote">
238
-      <option name="USE_SOCKET_TRANSPORT" value="true" />
239
-      <option name="SERVER_MODE" value="false" />
240
-      <option name="SHMEM_ADDRESS" value="javadebug" />
241
-      <option name="HOST" value="localhost" />
242
-      <option name="PORT" value="5005" />
212
+    <configuration name="ArrazTest.testAverageOfArray2" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
213
+      <module name="arraz" />
214
+      <option name="PACKAGE_NAME" value="" />
215
+      <option name="MAIN_CLASS_NAME" value="ArrazTest" />
216
+      <option name="METHOD_NAME" value="testAverageOfArray2" />
217
+      <option name="TEST_OBJECT" value="method" />
218
+      <option name="WORKING_DIRECTORY" value="%MODULE_WORKING_DIR%" />
219
+      <method v="2">
220
+        <option name="Make" enabled="true" />
221
+      </method>
222
+    </configuration>
223
+    <configuration name="ArrazTest.testDoubleAverageOfArray" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
224
+      <module name="arraz" />
225
+      <option name="PACKAGE_NAME" value="" />
226
+      <option name="MAIN_CLASS_NAME" value="ArrazTest" />
227
+      <option name="METHOD_NAME" value="testDoubleAverageOfArray" />
228
+      <option name="TEST_OBJECT" value="method" />
229
+      <option name="WORKING_DIRECTORY" value="%MODULE_WORKING_DIR%" />
230
+      <method v="2">
231
+        <option name="Make" enabled="true" />
232
+      </method>
233
+    </configuration>
234
+    <configuration default="true" type="JUnit" factoryName="JUnit">
235
+      <option name="WORKING_DIRECTORY" value="%MODULE_WORKING_DIR%" />
236
+      <method v="2">
237
+        <option name="Make" enabled="true" />
238
+      </method>
243 239
     </configuration>
244 240
     <configuration default="true" type="TestNG" factoryName="TestNG">
245
-      <extension name="coverage" enabled="false" merge="false" sample_coverage="true" runner="idea" />
246
-      <module name="" />
247
-      <option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
248
-      <option name="ALTERNATIVE_JRE_PATH" />
249
-      <option name="SUITE_NAME" />
250
-      <option name="PACKAGE_NAME" />
251
-      <option name="MAIN_CLASS_NAME" />
252
-      <option name="METHOD_NAME" />
253
-      <option name="GROUP_NAME" />
254
-      <option name="TEST_OBJECT" value="CLASS" />
255
-      <option name="VM_PARAMETERS" value="-ea" />
256
-      <option name="PARAMETERS" />
257 241
       <option name="WORKING_DIRECTORY" value="%MODULE_WORKING_DIR%" />
258
-      <option name="OUTPUT_DIRECTORY" />
259
-      <option name="ANNOTATION_TYPE" />
260
-      <option name="ENV_VARIABLES" />
261
-      <option name="PASS_PARENT_ENVS" value="true" />
262
-      <option name="TEST_SEARCH_SCOPE">
263
-        <value defaultName="singleModule" />
264
-      </option>
265
-      <option name="USE_DEFAULT_REPORTERS" value="false" />
266
-      <option name="PROPERTIES_FILE" />
267
-      <envs />
268 242
       <properties />
269 243
       <listeners />
244
+      <method v="2">
245
+        <option name="Make" enabled="true" />
246
+      </method>
270 247
     </configuration>
271 248
     <configuration default="true" type="#org.jetbrains.idea.devkit.run.PluginConfigurationType" factoryName="Plugin">
272 249
       <module name="" />
273 250
       <option name="VM_PARAMETERS" value="-Xmx512m -Xms256m -XX:MaxPermSize=250m -ea" />
274 251
       <option name="PROGRAM_PARAMETERS" />
275 252
       <predefined_log_file id="idea.log" enabled="true" />
253
+      <method v="2">
254
+        <option name="Make" enabled="true" />
255
+      </method>
276 256
     </configuration>
277
-  </component>
278
-  <component name="ShelveChangesManager" show_recycled="false">
279
-    <option name="remove_strategy" value="false" />
257
+    <list>
258
+      <item itemvalue="JUnit.ArrazTest.testDoubleAverageOfArray" />
259
+      <item itemvalue="JUnit.ArrazTest" />
260
+      <item itemvalue="JUnit.ArrazTest.testAverageOfArray2" />
261
+    </list>
262
+    <recent_temporary>
263
+      <list>
264
+        <item itemvalue="JUnit.ArrazTest" />
265
+        <item itemvalue="JUnit.ArrazTest.testAverageOfArray2" />
266
+        <item itemvalue="JUnit.ArrazTest.testDoubleAverageOfArray" />
267
+      </list>
268
+    </recent_temporary>
280 269
   </component>
281 270
   <component name="SvnConfiguration">
282 271
     <configuration />
@@ -291,6 +280,8 @@
291 280
       <workItem from="1543955862749" duration="2347000" />
292 281
       <workItem from="1543958998826" duration="113000" />
293 282
       <workItem from="1544020724645" duration="762000" />
283
+      <workItem from="1544027782634" duration="200000" />
284
+      <workItem from="1544045942928" duration="881000" />
294 285
     </task>
295 286
     <task id="LOCAL-00001" summary="readme and docs">
296 287
       <created>1544021313039</created>
@@ -302,39 +293,55 @@
302 293
     <option name="localTasksCounter" value="2" />
303 294
     <servers />
304 295
   </component>
296
+  <component name="TestHistory">
297
+    <history-entry file="ArrazTest_testDoubleAverageOfArray - 2018.12.05 at 16h 42m 22s.xml">
298
+      <configuration name="ArrazTest.testDoubleAverageOfArray" configurationId="JUnit" />
299
+    </history-entry>
300
+    <history-entry file="ArrazTest - 2018.12.05 at 16h 50m 15s.xml">
301
+      <configuration name="ArrazTest" configurationId="JUnit" />
302
+    </history-entry>
303
+    <history-entry file="ArrazTest_testAverageOfArray2 - 2018.12.05 at 16h 51m 27s.xml">
304
+      <configuration name="ArrazTest.testAverageOfArray2" configurationId="JUnit" />
305
+    </history-entry>
306
+    <history-entry file="ArrazTest - 2018.12.05 at 16h 52m 29s.xml">
307
+      <configuration name="ArrazTest" configurationId="JUnit" />
308
+    </history-entry>
309
+  </component>
305 310
   <component name="TimeTrackingManager">
306
-    <option name="totallyTimeSpent" value="3222000" />
311
+    <option name="totallyTimeSpent" value="4303000" />
307 312
   </component>
308 313
   <component name="ToolWindowManager">
309
-    <frame x="242" y="45" width="1538" height="962" extended-state="0" />
314
+    <frame x="0" y="22" width="1280" height="739" extended-state="6" />
310 315
     <editor active="true" />
311 316
     <layout>
312
-      <window_info id="Palette" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
313
-      <window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
314
-      <window_info id="Palette&#9;" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
315
-      <window_info id="Image Layers" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
316
-      <window_info id="Capture Analysis" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
317
-      <window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="7" side_tool="true" content_ui="tabs" />
318
-      <window_info id="Maven Projects" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
319
-      <window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
320
-      <window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
321
-      <window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
322
-      <window_info id="Capture Tool" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
323
-      <window_info id="Designer" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
324
-      <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.2577389" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
325
-      <window_info id="Database" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
326
-      <window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
327
-      <window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
328
-      <window_info id="UI Designer" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
329
-      <window_info id="Theme Preview" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
330
-      <window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
331
-      <window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="true" content_ui="tabs" />
332
-      <window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" />
333
-      <window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
334
-      <window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
335
-      <window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="combo" />
336
-      <window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" />
337
-      <window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
317
+      <window_info content_ui="combo" id="Project" order="0" visible="true" weight="0.2657512" />
318
+      <window_info id="Structure" order="1" weight="0.25" />
319
+      <window_info id="Image Layers" order="2" />
320
+      <window_info id="Designer" order="3" />
321
+      <window_info id="UI Designer" order="4" />
322
+      <window_info id="Capture Tool" order="5" />
323
+      <window_info id="Favorites" order="6" side_tool="true" />
324
+      <window_info anchor="bottom" id="Messages" weight="0.32921174" />
325
+      <window_info anchor="bottom" id="Message" order="0" />
326
+      <window_info anchor="bottom" id="Find" order="1" />
327
+      <window_info active="true" anchor="bottom" id="Run" order="2" visible="true" weight="0.32921174" />
328
+      <window_info anchor="bottom" id="Debug" order="3" weight="0.4" />
329
+      <window_info anchor="bottom" id="Cvs" order="4" weight="0.25" />
330
+      <window_info anchor="bottom" id="Inspection" order="5" weight="0.4" />
331
+      <window_info anchor="bottom" id="TODO" order="6" />
332
+      <window_info anchor="bottom" id="Terminal" order="7" />
333
+      <window_info anchor="bottom" id="Event Log" order="8" side_tool="true" />
334
+      <window_info anchor="bottom" id="Version Control" order="9" />
335
+      <window_info anchor="bottom" id="Database Changes" order="10" show_stripe_button="false" />
336
+      <window_info anchor="right" id="Commander" order="0" weight="0.4" />
337
+      <window_info anchor="right" id="Ant Build" order="1" weight="0.25" />
338
+      <window_info anchor="right" content_ui="combo" id="Hierarchy" order="2" weight="0.25" />
339
+      <window_info anchor="right" id="Palette" order="3" />
340
+      <window_info anchor="right" id="Capture Analysis" order="4" />
341
+      <window_info anchor="right" id="Theme Preview" order="5" />
342
+      <window_info anchor="right" id="Database" order="6" />
343
+      <window_info anchor="right" id="Palette&#9;" order="7" />
344
+      <window_info anchor="right" id="Maven Projects" order="8" />
338 345
     </layout>
339 346
   </component>
340 347
   <component name="TypeScriptGeneratedFilesManager">
@@ -347,113 +354,40 @@
347 354
     <MESSAGE value="readme and docs" />
348 355
     <option name="LAST_COMMIT_MESSAGE" value="readme and docs" />
349 356
   </component>
350
-  <component name="XDebuggerManager">
351
-    <breakpoint-manager />
352
-    <watches-manager />
353
-  </component>
354 357
   <component name="editorHistoryManager">
355 358
     <entry file="file://$PROJECT_DIR$/arraz/pom.xml">
356
-      <provider selected="true" editor-type-id="text-editor">
357
-        <state relative-caret-position="0">
358
-          <caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
359
-          <folding />
360
-        </state>
361
-      </provider>
362
-    </entry>
363
-    <entry file="file://$PROJECT_DIR$/arraz/src/main/java/Arraz.java">
364
-      <provider selected="true" editor-type-id="text-editor">
365
-        <state relative-caret-position="0">
366
-          <caret line="0" column="15" lean-forward="false" selection-start-line="0" selection-start-column="15" selection-end-line="0" selection-end-column="15" />
367
-          <folding />
368
-        </state>
369
-      </provider>
370
-    </entry>
371
-    <entry file="file://$PROJECT_DIR$/arraz/src/test/java/ArrazTest.java">
372
-      <provider selected="true" editor-type-id="text-editor">
373
-        <state relative-caret-position="34">
374
-          <caret line="2" column="23" lean-forward="false" selection-start-line="2" selection-start-column="23" selection-end-line="2" selection-end-column="23" />
375
-          <folding />
376
-        </state>
377
-      </provider>
359
+      <provider selected="true" editor-type-id="text-editor" />
378 360
     </entry>
379 361
     <entry file="file://$PROJECT_DIR$/README.md">
380 362
       <provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
381 363
         <state split_layout="SPLIT">
382
-          <first_editor relative-caret-position="1241">
383
-            <caret line="73" column="0" lean-forward="true" selection-start-line="73" selection-start-column="0" selection-end-line="73" selection-end-column="0" />
384
-            <folding />
364
+          <first_editor relative-caret-position="270">
365
+            <caret line="18" selection-start-line="18" selection-end-line="18" />
385 366
           </first_editor>
386 367
           <second_editor />
387 368
         </state>
388 369
       </provider>
389 370
     </entry>
390
-    <entry file="file://$PROJECT_DIR$/arraz/pom.xml">
391
-      <provider selected="true" editor-type-id="text-editor">
392
-        <state relative-caret-position="0">
393
-          <caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
394
-          <folding />
395
-        </state>
396
-      </provider>
397
-    </entry>
398 371
     <entry file="file://$PROJECT_DIR$/arraz/src/main/java/Arraz.java">
399 372
       <provider selected="true" editor-type-id="text-editor">
400
-        <state relative-caret-position="0">
401
-          <caret line="0" column="15" lean-forward="false" selection-start-line="0" selection-start-column="15" selection-end-line="0" selection-end-column="15" />
402
-          <folding />
373
+        <state relative-caret-position="164">
374
+          <caret line="30" column="54" selection-start-line="30" selection-start-column="54" selection-end-line="30" selection-end-column="54" />
375
+          <folding>
376
+            <element signature="e#470#471#0" expanded="true" />
377
+            <element signature="e#527#528#0" expanded="true" />
378
+            <element signature="e#589#590#0" expanded="true" />
379
+            <element signature="e#646#647#0" expanded="true" />
380
+          </folding>
403 381
         </state>
404 382
       </provider>
405 383
     </entry>
406 384
     <entry file="file://$PROJECT_DIR$/arraz/src/test/java/ArrazTest.java">
407 385
       <provider selected="true" editor-type-id="text-editor">
408
-        <state relative-caret-position="34">
409
-          <caret line="2" column="23" lean-forward="false" selection-start-line="2" selection-start-column="23" selection-end-line="2" selection-end-column="23" />
410
-          <folding />
411
-        </state>
412
-      </provider>
413
-    </entry>
414
-    <entry file="file://$PROJECT_DIR$/README.md">
415
-      <provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
416
-        <state split_layout="SPLIT">
417
-          <first_editor relative-caret-position="1241">
418
-            <caret line="73" column="0" lean-forward="true" selection-start-line="73" selection-start-column="0" selection-end-line="73" selection-end-column="0" />
419
-            <folding />
420
-          </first_editor>
421
-          <second_editor />
422
-        </state>
423
-      </provider>
424
-    </entry>
425
-    <entry file="file://$PROJECT_DIR$/arraz/pom.xml">
426
-      <provider selected="true" editor-type-id="text-editor">
427
-        <state relative-caret-position="0">
428
-          <caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
429
-          <folding />
430
-        </state>
431
-      </provider>
432
-    </entry>
433
-    <entry file="file://$PROJECT_DIR$/arraz/src/main/java/Arraz.java">
434
-      <provider selected="true" editor-type-id="text-editor">
435
-        <state relative-caret-position="0">
436
-          <caret line="0" column="15" lean-forward="false" selection-start-line="0" selection-start-column="15" selection-end-line="0" selection-end-column="15" />
437
-          <folding />
438
-        </state>
439
-      </provider>
440
-    </entry>
441
-    <entry file="file://$PROJECT_DIR$/arraz/src/test/java/ArrazTest.java">
442
-      <provider selected="true" editor-type-id="text-editor">
443
-        <state relative-caret-position="34">
444
-          <caret line="2" column="23" lean-forward="false" selection-start-line="2" selection-start-column="23" selection-end-line="2" selection-end-column="23" />
445
-          <folding />
446
-        </state>
447
-      </provider>
448
-    </entry>
449
-    <entry file="file://$PROJECT_DIR$/README.md">
450
-      <provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
451
-        <state split_layout="SPLIT">
452
-          <first_editor relative-caret-position="306">
453
-            <caret line="18" column="0" lean-forward="true" selection-start-line="18" selection-start-column="0" selection-end-line="18" selection-end-column="0" />
454
-            <folding />
455
-          </first_editor>
456
-          <second_editor />
386
+        <state relative-caret-position="375">
387
+          <caret line="25" column="25" selection-start-line="25" selection-start-column="25" selection-end-line="25" selection-end-column="25" />
388
+          <folding>
389
+            <element signature="imports" expanded="true" />
390
+          </folding>
457 391
         </state>
458 392
       </provider>
459 393
     </entry>

+ 16
- 0
arraz/.idea/compiler.xml 查看文件

@@ -0,0 +1,16 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<project version="4">
3
+  <component name="CompilerConfiguration">
4
+    <annotationProcessing>
5
+      <profile name="Maven default annotation processors profile" enabled="true">
6
+        <sourceOutputDir name="target/generated-sources/annotations" />
7
+        <sourceTestOutputDir name="target/generated-test-sources/test-annotations" />
8
+        <outputRelativeToContentRoot value="true" />
9
+        <module name="arraz" />
10
+      </profile>
11
+    </annotationProcessing>
12
+    <bytecodeTargetLevel>
13
+      <module name="arraz" target="1.5" />
14
+    </bytecodeTargetLevel>
15
+  </component>
16
+</project>

+ 13
- 0
arraz/.idea/libraries/Maven__junit_junit_4_0.xml 查看文件

@@ -0,0 +1,13 @@
1
+<component name="libraryTable">
2
+  <library name="Maven: junit:junit:4.0">
3
+    <CLASSES>
4
+      <root url="jar://$MAVEN_REPOSITORY$/junit/junit/4.0/junit-4.0.jar!/" />
5
+    </CLASSES>
6
+    <JAVADOC>
7
+      <root url="jar://$MAVEN_REPOSITORY$/junit/junit/4.0/junit-4.0-javadoc.jar!/" />
8
+    </JAVADOC>
9
+    <SOURCES>
10
+      <root url="jar://$MAVEN_REPOSITORY$/junit/junit/4.0/junit-4.0-sources.jar!/" />
11
+    </SOURCES>
12
+  </library>
13
+</component>

+ 13
- 0
arraz/.idea/misc.xml 查看文件

@@ -0,0 +1,13 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<project version="4">
3
+  <component name="MavenProjectsManager">
4
+    <option name="originalFiles">
5
+      <list>
6
+        <option value="$PROJECT_DIR$/pom.xml" />
7
+      </list>
8
+    </option>
9
+  </component>
10
+  <component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" project-jdk-name="1.8" project-jdk-type="JavaSDK">
11
+    <output url="file://$PROJECT_DIR$/classes" />
12
+  </component>
13
+</project>

+ 8
- 0
arraz/.idea/modules.xml 查看文件

@@ -0,0 +1,8 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<project version="4">
3
+  <component name="ProjectModuleManager">
4
+    <modules>
5
+      <module fileurl="file://$PROJECT_DIR$/arraz.iml" filepath="$PROJECT_DIR$/arraz.iml" />
6
+    </modules>
7
+  </component>
8
+</project>

+ 6
- 0
arraz/.idea/vcs.xml 查看文件

@@ -0,0 +1,6 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<project version="4">
3
+  <component name="VcsDirectoryMappings">
4
+    <mapping directory="$PROJECT_DIR$/.." vcs="Git" />
5
+  </component>
6
+</project>

+ 306
- 0
arraz/.idea/workspace.xml 查看文件

@@ -0,0 +1,306 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<project version="4">
3
+  <component name="ChangeListManager">
4
+    <list default="true" id="b8c36495-5173-4e1d-8280-d1b87d726566" name="Default Changelist" comment="">
5
+      <change afterPath="$PROJECT_DIR$/.idea/compiler.xml" afterDir="false" />
6
+      <change afterPath="$PROJECT_DIR$/.idea/libraries/Maven__junit_junit_4_0.xml" afterDir="false" />
7
+      <change afterPath="$PROJECT_DIR$/.idea/misc.xml" afterDir="false" />
8
+      <change afterPath="$PROJECT_DIR$/.idea/modules.xml" afterDir="false" />
9
+      <change afterPath="$PROJECT_DIR$/.idea/vcs.xml" afterDir="false" />
10
+      <change afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
11
+      <change beforePath="$PROJECT_DIR$/../.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/../.idea/workspace.xml" afterDir="false" />
12
+      <change beforePath="$PROJECT_DIR$/arraz.iml" beforeDir="false" afterPath="$PROJECT_DIR$/arraz.iml" afterDir="false" />
13
+      <change beforePath="$PROJECT_DIR$/src/main/java/Arraz.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/Arraz.java" afterDir="false" />
14
+      <change beforePath="$PROJECT_DIR$/src/test/java/ArrazTest.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/test/java/ArrazTest.java" afterDir="false" />
15
+    </list>
16
+    <ignored path="$PROJECT_DIR$/target/" />
17
+    <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
18
+    <option name="SHOW_DIALOG" value="false" />
19
+    <option name="HIGHLIGHT_CONFLICTS" value="true" />
20
+    <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
21
+    <option name="LAST_RESOLUTION" value="IGNORE" />
22
+  </component>
23
+  <component name="FUSProjectUsageTrigger">
24
+    <session id="-908095794">
25
+      <usages-collector id="statistics.lifecycle.project">
26
+        <counts>
27
+          <entry key="project.closed" value="1" />
28
+          <entry key="project.open.time.3" value="1" />
29
+          <entry key="project.opened" value="1" />
30
+        </counts>
31
+      </usages-collector>
32
+      <usages-collector id="statistics.file.types.open">
33
+        <counts>
34
+          <entry key="JAVA" value="2" />
35
+        </counts>
36
+      </usages-collector>
37
+      <usages-collector id="statistics.file.types.edit">
38
+        <counts>
39
+          <entry key="JAVA" value="708" />
40
+        </counts>
41
+      </usages-collector>
42
+    </session>
43
+  </component>
44
+  <component name="FileEditorManager">
45
+    <leaf>
46
+      <file pinned="false" current-in-tab="false">
47
+        <entry file="file://$PROJECT_DIR$/src/main/java/Arraz.java">
48
+          <provider selected="true" editor-type-id="text-editor">
49
+            <state relative-caret-position="330">
50
+              <caret line="23" column="49" selection-start-line="23" selection-start-column="49" selection-end-line="23" selection-end-column="49" />
51
+              <folding>
52
+                <element signature="e#461#462#0" expanded="true" />
53
+                <element signature="e#485#486#0" expanded="true" />
54
+              </folding>
55
+            </state>
56
+          </provider>
57
+        </entry>
58
+      </file>
59
+      <file pinned="false" current-in-tab="true">
60
+        <entry file="file://$PROJECT_DIR$/src/test/java/ArrazTest.java">
61
+          <provider selected="true" editor-type-id="text-editor">
62
+            <state relative-caret-position="390">
63
+              <caret line="52" column="45" selection-start-line="52" selection-start-column="45" selection-end-line="52" selection-end-column="45" />
64
+              <folding>
65
+                <element signature="imports" expanded="true" />
66
+              </folding>
67
+            </state>
68
+          </provider>
69
+        </entry>
70
+      </file>
71
+    </leaf>
72
+  </component>
73
+  <component name="Git.Settings">
74
+    <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$/.." />
75
+  </component>
76
+  <component name="IdeDocumentHistory">
77
+    <option name="CHANGED_PATHS">
78
+      <list>
79
+        <option value="$PROJECT_DIR$/src/test/java/ArrazTest.java" />
80
+        <option value="$PROJECT_DIR$/src/main/java/Arraz.java" />
81
+      </list>
82
+    </option>
83
+  </component>
84
+  <component name="JsBuildToolGruntFileManager" detection-done="true" sorting="DEFINITION_ORDER" />
85
+  <component name="JsBuildToolPackageJson" detection-done="true" sorting="DEFINITION_ORDER" />
86
+  <component name="JsGulpfileManager">
87
+    <detection-done>true</detection-done>
88
+    <sorting>DEFINITION_ORDER</sorting>
89
+  </component>
90
+  <component name="ProjectFrameBounds" extendedState="6">
91
+    <option name="x" value="242" />
92
+    <option name="y" value="45" />
93
+    <option name="width" value="1538" />
94
+    <option name="height" value="962" />
95
+  </component>
96
+  <component name="ProjectLevelVcsManager" settingsEditedManually="true" />
97
+  <component name="ProjectView">
98
+    <navigator proportions="" version="1">
99
+      <foldersAlwaysOnTop value="true" />
100
+    </navigator>
101
+    <panes>
102
+      <pane id="ProjectPane">
103
+        <subPane>
104
+          <expand>
105
+            <path>
106
+              <item name="arraz" type="b2602c69:ProjectViewProjectNode" />
107
+              <item name="arraz" type="462c0819:PsiDirectoryNode" />
108
+            </path>
109
+            <path>
110
+              <item name="arraz" type="b2602c69:ProjectViewProjectNode" />
111
+              <item name="arraz" type="462c0819:PsiDirectoryNode" />
112
+              <item name="src" type="462c0819:PsiDirectoryNode" />
113
+            </path>
114
+            <path>
115
+              <item name="arraz" type="b2602c69:ProjectViewProjectNode" />
116
+              <item name="arraz" type="462c0819:PsiDirectoryNode" />
117
+              <item name="src" type="462c0819:PsiDirectoryNode" />
118
+              <item name="main" type="462c0819:PsiDirectoryNode" />
119
+            </path>
120
+            <path>
121
+              <item name="arraz" type="b2602c69:ProjectViewProjectNode" />
122
+              <item name="arraz" type="462c0819:PsiDirectoryNode" />
123
+              <item name="src" type="462c0819:PsiDirectoryNode" />
124
+              <item name="main" type="462c0819:PsiDirectoryNode" />
125
+              <item name="java" type="462c0819:PsiDirectoryNode" />
126
+            </path>
127
+            <path>
128
+              <item name="arraz" type="b2602c69:ProjectViewProjectNode" />
129
+              <item name="arraz" type="462c0819:PsiDirectoryNode" />
130
+              <item name="src" type="462c0819:PsiDirectoryNode" />
131
+              <item name="test" type="462c0819:PsiDirectoryNode" />
132
+            </path>
133
+            <path>
134
+              <item name="arraz" type="b2602c69:ProjectViewProjectNode" />
135
+              <item name="arraz" type="462c0819:PsiDirectoryNode" />
136
+              <item name="src" type="462c0819:PsiDirectoryNode" />
137
+              <item name="test" type="462c0819:PsiDirectoryNode" />
138
+              <item name="java" type="462c0819:PsiDirectoryNode" />
139
+            </path>
140
+          </expand>
141
+          <select />
142
+        </subPane>
143
+      </pane>
144
+      <pane id="Scope" />
145
+      <pane id="PackagesPane" />
146
+    </panes>
147
+  </component>
148
+  <component name="PropertiesComponent">
149
+    <property name="WebServerToolWindowFactoryState" value="false" />
150
+    <property name="aspect.path.notification.shown" value="true" />
151
+    <property name="com.android.tools.idea.instantapp.provision.ProvisionBeforeRunTaskProvider.myTimeStamp" value="1544034057756" />
152
+    <property name="last_opened_file_path" value="$PROJECT_DIR$/pom.xml" />
153
+    <property name="nodejs_interpreter_path.stuck_in_default_project" value="undefined stuck path" />
154
+    <property name="nodejs_npm_path_reset_for_default_project" value="true" />
155
+  </component>
156
+  <component name="RunDashboard">
157
+    <option name="ruleStates">
158
+      <list>
159
+        <RuleState>
160
+          <option name="name" value="ConfigurationTypeDashboardGroupingRule" />
161
+        </RuleState>
162
+        <RuleState>
163
+          <option name="name" value="StatusDashboardGroupingRule" />
164
+        </RuleState>
165
+      </list>
166
+    </option>
167
+  </component>
168
+  <component name="RunManager" selected="JUnit.ArrazTest.testAverageOfArray">
169
+    <configuration name="ArrazTest.testAverageOfArray" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
170
+      <module name="arraz" />
171
+      <option name="PACKAGE_NAME" value="" />
172
+      <option name="MAIN_CLASS_NAME" value="ArrazTest" />
173
+      <option name="METHOD_NAME" value="testAverageOfArray" />
174
+      <option name="TEST_OBJECT" value="method" />
175
+      <method v="2">
176
+        <option name="Make" enabled="true" />
177
+      </method>
178
+    </configuration>
179
+    <configuration name="ArrazTest.testSumDoublesOfArray" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
180
+      <module name="arraz" />
181
+      <option name="PACKAGE_NAME" value="" />
182
+      <option name="MAIN_CLASS_NAME" value="ArrazTest" />
183
+      <option name="METHOD_NAME" value="testSumDoublesOfArray" />
184
+      <option name="TEST_OBJECT" value="method" />
185
+      <method v="2">
186
+        <option name="Make" enabled="true" />
187
+      </method>
188
+    </configuration>
189
+    <configuration name="ArrazTest.testSumValuesOfArray" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
190
+      <module name="arraz" />
191
+      <option name="PACKAGE_NAME" value="" />
192
+      <option name="MAIN_CLASS_NAME" value="ArrazTest" />
193
+      <option name="METHOD_NAME" value="testSumValuesOfArray" />
194
+      <option name="TEST_OBJECT" value="method" />
195
+      <method v="2">
196
+        <option name="Make" enabled="true" />
197
+      </method>
198
+    </configuration>
199
+    <list>
200
+      <item itemvalue="JUnit.ArrazTest.testSumValuesOfArray" />
201
+      <item itemvalue="JUnit.ArrazTest.testSumDoublesOfArray" />
202
+      <item itemvalue="JUnit.ArrazTest.testAverageOfArray" />
203
+    </list>
204
+    <recent_temporary>
205
+      <list>
206
+        <item itemvalue="JUnit.ArrazTest.testAverageOfArray" />
207
+        <item itemvalue="JUnit.ArrazTest.testSumDoublesOfArray" />
208
+        <item itemvalue="JUnit.ArrazTest.testSumValuesOfArray" />
209
+      </list>
210
+    </recent_temporary>
211
+  </component>
212
+  <component name="SvnConfiguration">
213
+    <configuration />
214
+  </component>
215
+  <component name="TaskManager">
216
+    <task active="true" id="Default" summary="Default task">
217
+      <changelist id="b8c36495-5173-4e1d-8280-d1b87d726566" name="Default Changelist" comment="" />
218
+      <created>1544027899963</created>
219
+      <option name="number" value="Default" />
220
+      <option name="presentableId" value="Default" />
221
+      <updated>1544027899963</updated>
222
+      <workItem from="1544027903345" duration="1325000" />
223
+    </task>
224
+    <servers />
225
+  </component>
226
+  <component name="TestHistory">
227
+    <history-entry file="ArrazTest_testSumValuesOfArray - 2018.12.05 at 11h 45m 08s.xml">
228
+      <configuration name="ArrazTest.testSumValuesOfArray" configurationId="JUnit" />
229
+    </history-entry>
230
+    <history-entry file="ArrazTest_testSumDoublesOfArray - 2018.12.05 at 11h 50m 41s.xml">
231
+      <configuration name="ArrazTest.testSumDoublesOfArray" configurationId="JUnit" />
232
+    </history-entry>
233
+    <history-entry file="ArrazTest_testSumDoublesOfArray - 2018.12.05 at 11h 50m 57s.xml">
234
+      <configuration name="ArrazTest.testSumDoublesOfArray" configurationId="JUnit" />
235
+    </history-entry>
236
+    <history-entry file="ArrazTest_testAverageOfArray - 2018.12.05 at 11h 54m 01s.xml">
237
+      <configuration name="ArrazTest.testAverageOfArray" configurationId="JUnit" />
238
+    </history-entry>
239
+  </component>
240
+  <component name="TimeTrackingManager">
241
+    <option name="totallyTimeSpent" value="1325000" />
242
+  </component>
243
+  <component name="ToolWindowManager">
244
+    <frame x="0" y="22" width="1280" height="739" extended-state="6" />
245
+    <editor active="true" />
246
+    <layout>
247
+      <window_info id="Image Layers" />
248
+      <window_info id="Designer" />
249
+      <window_info id="UI Designer" />
250
+      <window_info id="Capture Tool" />
251
+      <window_info id="Favorites" side_tool="true" />
252
+      <window_info content_ui="combo" id="Project" order="0" visible="true" weight="0.24959612" />
253
+      <window_info id="Structure" order="1" side_tool="true" weight="0.25" />
254
+      <window_info anchor="bottom" id="Messages" weight="0.32921174" />
255
+      <window_info anchor="bottom" id="Database Changes" show_stripe_button="false" />
256
+      <window_info anchor="bottom" id="Version Control" show_stripe_button="false" />
257
+      <window_info anchor="bottom" id="Terminal" />
258
+      <window_info anchor="bottom" id="Event Log" side_tool="true" />
259
+      <window_info anchor="bottom" id="Message" order="0" />
260
+      <window_info anchor="bottom" id="Find" order="1" />
261
+      <window_info anchor="bottom" id="Run" order="2" weight="0.32921174" />
262
+      <window_info anchor="bottom" id="Debug" order="3" weight="0.4" />
263
+      <window_info anchor="bottom" id="Cvs" order="4" weight="0.25" />
264
+      <window_info anchor="bottom" id="Inspection" order="5" weight="0.4" />
265
+      <window_info anchor="bottom" id="TODO" order="6" />
266
+      <window_info anchor="right" id="Palette" />
267
+      <window_info anchor="right" id="Theme Preview" />
268
+      <window_info anchor="right" id="Capture Analysis" />
269
+      <window_info anchor="right" id="Palette&#9;" />
270
+      <window_info anchor="right" id="Database" />
271
+      <window_info anchor="right" id="Maven Projects" />
272
+      <window_info anchor="right" id="Commander" internal_type="SLIDING" order="0" type="SLIDING" weight="0.4" />
273
+      <window_info anchor="right" id="Ant Build" order="1" weight="0.25" />
274
+      <window_info anchor="right" content_ui="combo" id="Hierarchy" order="2" weight="0.25" />
275
+    </layout>
276
+  </component>
277
+  <component name="TypeScriptGeneratedFilesManager">
278
+    <option name="version" value="1" />
279
+  </component>
280
+  <component name="VcsContentAnnotationSettings">
281
+    <option name="myLimit" value="2678400000" />
282
+  </component>
283
+  <component name="editorHistoryManager">
284
+    <entry file="file://$PROJECT_DIR$/src/main/java/Arraz.java">
285
+      <provider selected="true" editor-type-id="text-editor">
286
+        <state relative-caret-position="330">
287
+          <caret line="23" column="49" selection-start-line="23" selection-start-column="49" selection-end-line="23" selection-end-column="49" />
288
+          <folding>
289
+            <element signature="e#461#462#0" expanded="true" />
290
+            <element signature="e#485#486#0" expanded="true" />
291
+          </folding>
292
+        </state>
293
+      </provider>
294
+    </entry>
295
+    <entry file="file://$PROJECT_DIR$/src/test/java/ArrazTest.java">
296
+      <provider selected="true" editor-type-id="text-editor">
297
+        <state relative-caret-position="390">
298
+          <caret line="52" column="45" selection-start-line="52" selection-start-column="45" selection-end-line="52" selection-end-column="45" />
299
+          <folding>
300
+            <element signature="imports" expanded="true" />
301
+          </folding>
302
+        </state>
303
+      </provider>
304
+    </entry>
305
+  </component>
306
+</project>

+ 1
- 2
arraz/arraz.iml 查看文件

@@ -5,11 +5,10 @@
5 5
     <output-test url="file://$MODULE_DIR$/target/test-classes" />
6 6
     <content url="file://$MODULE_DIR$">
7 7
       <sourceFolder url="file://$MODULE_DIR$/src/main/java" isTestSource="false" />
8
-      <sourceFolder url="file://$MODULE_DIR$/src/main/resources" type="java-resource" />
9 8
       <sourceFolder url="file://$MODULE_DIR$/src/test/java" isTestSource="true" />
10 9
       <excludeFolder url="file://$MODULE_DIR$/target" />
11 10
     </content>
12
-    <orderEntry type="jdk" jdkName="1.8" jdkType="JavaSDK" />
11
+    <orderEntry type="inheritedJdk" />
13 12
     <orderEntry type="sourceFolder" forTests="false" />
14 13
     <orderEntry type="library" name="Maven: junit:junit:4.0" level="project" />
15 14
   </component>

+ 37
- 0
arraz/src/main/java/Arraz.java 查看文件

@@ -1,2 +1,39 @@
1 1
 public class Arraz {
2
+
3
+    public static int sumValuesOfArray(int[] arr) {
4
+        int output = 0;
5
+
6
+        for (int i = 0; i < arr.length; i++) {
7
+            output += arr[i];
8
+        }
9
+
10
+        return output;
11
+    }
12
+
13
+    public static double sumDoublesOfArray(double[] arr) {
14
+        double output = 0;
15
+
16
+        for (int i = 0; i < arr.length; i++) {
17
+            output += arr[i];
18
+        }
19
+
20
+        return output;
21
+    }
22
+
23
+    public static int averageOfArray(int[] arr) {
24
+        return sumValuesOfArray(arr) / arr.length;
25
+    }
26
+
27
+    public static double doubleAverageOfArray(double[] arr){
28
+        return sumDoublesOfArray(arr) / arr.length;
29
+    }
30
+
31
+    public static boolean containsValue(int[] arr, int n) {
32
+        for(int i = 0; i < arr.length; i++){
33
+            if(arr[i] == n){
34
+                return true;
35
+            }
36
+        }
37
+        return false;
38
+    }
2 39
 }

+ 115
- 0
arraz/src/test/java/ArrazTest.java 查看文件

@@ -1,5 +1,120 @@
1
+import org.junit.Assert;
2
+import org.junit.Test;
3
+
1 4
 import static org.junit.Assert.*;
2 5
 
3 6
 public class ArrazTest {
4 7
 
8
+    @Test
9
+    public void testSumValuesOfArrayPostive(){
10
+        int[] arr = new int[] {2, 3, 4, 5, 6, 7};
11
+
12
+        int output = Arraz.sumValuesOfArray(arr);
13
+
14
+        int expected = 27;
15
+        int actual = output;
16
+
17
+        Assert.assertEquals(expected, actual);
18
+    }
19
+
20
+    @Test
21
+    public void testSumValuesOfArrayNegative(){
22
+        int[] arr = new int[] {2, -3, 4, 5, 6, 7};
23
+
24
+        int output = Arraz.sumValuesOfArray(arr);
25
+
26
+        int expected = 21;
27
+        int actual = output;
28
+
29
+        Assert.assertEquals(expected, actual);
30
+    }
31
+
32
+    @Test
33
+    public void testSumDoublesOfArrayPostive(){
34
+
35
+        double[] arr = new double[] {2.5, .1, 4.2, .2};
36
+
37
+        double actual = Arraz.sumDoublesOfArray(arr);
38
+
39
+        double expected  = 7;
40
+
41
+        Assert.assertEquals(expected, actual, .00001);
42
+    }
43
+
44
+    @Test
45
+    public void testSumDoublesOfArrayNegative(){
46
+
47
+        double[] arr = new double[] {2.5, -.1, 4.2, .2};
48
+
49
+        double actual = Arraz.sumDoublesOfArray(arr);
50
+
51
+        double expected  = 6.8;
52
+
53
+        Assert.assertEquals(expected, actual, 0);
54
+    }
55
+
56
+    @Test
57
+    public void testAverageOfArray1(){
58
+
59
+        int[] arr = new int[] {1,1,1,1,1,1,1};
60
+
61
+        int actual = Arraz.averageOfArray(arr);
62
+
63
+        int expected = 1;
64
+
65
+        Assert.assertEquals(expected, actual);
66
+    }
67
+
68
+    @Test
69
+    public void testAverageOfArray2(){
70
+
71
+        int[] arr = new int[] {1,2,34,3,1,1,-122};
72
+
73
+        int actual = Arraz.averageOfArray(arr);
74
+
75
+        int expected = -11;
76
+
77
+        Assert.assertEquals(expected, actual);
78
+    }
79
+
80
+    @Test
81
+    public void testDoubleAverageOfArray(){
82
+        double[] arr = new double[] {1,1,1,1,1,1,1};
83
+
84
+        double actual = Arraz.doubleAverageOfArray(arr);
85
+
86
+        double expected = 1;
87
+
88
+        Assert.assertEquals(expected, actual);
89
+    }
90
+
91
+    @Test
92
+    public void testDoubleAverageOfArray2(){
93
+        double[] arr = new double[] {2.4,23.4,43,12,5,2,54,.5};
94
+
95
+        double actual = Arraz.doubleAverageOfArray(arr);
96
+
97
+        double expected = 17.7875;
98
+
99
+        Assert.assertEquals(expected, actual, .001);
100
+    }
101
+
102
+    @Test
103
+    public void testContainsValueFalse(){
104
+        int[] arr = new int[] {1,2,3,4,5,6,7,8,9};
105
+
106
+        boolean expected = false;
107
+        boolean actual = Arraz.containsValue(arr, 10);
108
+
109
+        Assert.assertEquals(expected, actual);
110
+    }
111
+
112
+    @Test
113
+    public void testContainsValueTrue(){
114
+        int[] arr = new int[] {1,2,3,4,5,6,7,8,9};
115
+
116
+        boolean actual = Arraz.containsValue(arr, 5);
117
+
118
+        Assert.assertTrue(actual);
119
+    }
5 120
 }