Elliott Stansbury před 6 roky
rodič
revize
a5618fd9c9
3 změnil soubory, kde provedl 433 přidání a 237 odebrání
  1. 220
    237
      .idea/workspace.xml
  2. 69
    0
      arraz/src/main/java/Arraz.java
  3. 144
    0
      arraz/src/test/java/ArrazTest.java

+ 220
- 237
.idea/workspace.xml Zobrazit soubor

@@ -2,58 +2,87 @@
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 beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
6
+      <change beforePath="$PROJECT_DIR$/arraz/src/main/java/Arraz.java" beforeDir="false" afterPath="$PROJECT_DIR$/arraz/src/main/java/Arraz.java" afterDir="false" />
7
+      <change beforePath="$PROJECT_DIR$/arraz/src/test/java/ArrazTest.java" beforeDir="false" afterPath="$PROJECT_DIR$/arraz/src/test/java/ArrazTest.java" afterDir="false" />
7 8
     </list>
8 9
     <ignored path="$PROJECT_DIR$/arraz/target/" />
9 10
     <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
10
-    <option name="TRACKING_ENABLED" value="true" />
11 11
     <option name="SHOW_DIALOG" value="false" />
12 12
     <option name="HIGHLIGHT_CONFLICTS" value="true" />
13 13
     <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
14 14
     <option name="LAST_RESOLUTION" value="IGNORE" />
15 15
   </component>
16
+  <component name="DockManager">
17
+    <window id="1">
18
+      <content type="file-editors">
19
+        <state>
20
+          <leaf>
21
+            <file pinned="false" current-in-tab="true">
22
+              <entry file="file://$PROJECT_DIR$/README.md">
23
+                <provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
24
+                  <state split_layout="SPLIT">
25
+                    <first_editor relative-caret-position="270">
26
+                      <caret line="18" selection-start-line="18" selection-end-line="18" />
27
+                    </first_editor>
28
+                    <second_editor />
29
+                  </state>
30
+                </provider>
31
+              </entry>
32
+            </file>
33
+          </leaf>
34
+        </state>
35
+      </content>
36
+    </window>
37
+  </component>
38
+  <component name="FUSProjectUsageTrigger">
39
+    <session id="1306093486">
40
+      <usages-collector id="statistics.lifecycle.project">
41
+        <counts>
42
+          <entry key="project.open.time.3" value="1" />
43
+          <entry key="project.opened" value="1" />
44
+        </counts>
45
+      </usages-collector>
46
+      <usages-collector id="statistics.file.types.open">
47
+        <counts>
48
+          <entry key="Markdown" value="1" />
49
+        </counts>
50
+      </usages-collector>
51
+      <usages-collector id="statistics.file.types.edit">
52
+        <counts>
53
+          <entry key="JAVA" value="2511" />
54
+        </counts>
55
+      </usages-collector>
56
+    </session>
57
+  </component>
16 58
   <component name="FileEditorManager">
17 59
     <leaf SIDE_TABS_SIZE_LIMIT_KEY="375">
18
-      <file leaf-file-name="pom.xml" pinned="false" current-in-tab="false">
60
+      <file pinned="false" current-in-tab="false">
19 61
         <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>
62
+          <provider selected="true" editor-type-id="text-editor" />
26 63
         </entry>
27 64
       </file>
28
-      <file leaf-file-name="Arraz.java" pinned="false" current-in-tab="false">
65
+      <file pinned="false" current-in-tab="false">
29 66
         <entry file="file://$PROJECT_DIR$/arraz/src/main/java/Arraz.java">
30 67
           <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 />
68
+            <state relative-caret-position="990">
69
+              <caret line="66" lean-forward="true" selection-start-line="66" selection-end-line="66" />
70
+              <folding>
71
+                <element signature="e#1055#1056#0" expanded="true" />
72
+                <element signature="e#1093#1094#0" expanded="true" />
73
+              </folding>
34 74
             </state>
35 75
           </provider>
36 76
         </entry>
37 77
       </file>
38
-      <file leaf-file-name="ArrazTest.java" pinned="false" current-in-tab="false">
78
+      <file pinned="false" current-in-tab="true">
39 79
         <entry file="file://$PROJECT_DIR$/arraz/src/test/java/ArrazTest.java">
40 80
           <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 />
81
+            <state relative-caret-position="1525">
82
+              <caret line="141" column="32" selection-start-line="141" selection-start-column="32" selection-end-line="141" selection-end-column="32" />
83
+              <folding>
84
+                <element signature="imports" expanded="true" />
85
+              </folding>
57 86
             </state>
58 87
           </provider>
59 88
         </entry>
@@ -72,9 +101,6 @@
72 101
     <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
73 102
   </component>
74 103
   <component name="GradleLocalSettings">
75
-    <option name="externalProjectsViewState">
76
-      <projects_view />
77
-    </option>
78 104
     <option name="projectSyncType">
79 105
       <map>
80 106
         <entry key="$USER_HOME$/GitHub/gs-gradle/initial" value="PREVIEW" />
@@ -84,8 +110,9 @@
84 110
   <component name="IdeDocumentHistory">
85 111
     <option name="CHANGED_PATHS">
86 112
       <list>
87
-        <option value="$PROJECT_DIR$/arraz/src/test/java/ArrazTest.java" />
88 113
         <option value="$PROJECT_DIR$/README.md" />
114
+        <option value="$PROJECT_DIR$/arraz/src/test/java/ArrazTest.java" />
115
+        <option value="$PROJECT_DIR$/arraz/src/main/java/Arraz.java" />
89 116
       </list>
90 117
     </option>
91 118
   </component>
@@ -102,27 +129,18 @@
102 129
       </MavenImportingSettings>
103 130
     </option>
104 131
   </component>
105
-  <component name="ProjectFrameBounds">
132
+  <component name="ProjectFrameBounds" extendedState="6">
106 133
     <option name="x" value="242" />
107 134
     <option name="y" value="45" />
108 135
     <option name="width" value="1538" />
109 136
     <option name="height" value="962" />
110 137
   </component>
111 138
   <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 />
139
+    <navigator proportions="" version="1">
123 140
       <foldersAlwaysOnTop value="true" />
124 141
     </navigator>
125 142
     <panes>
143
+      <pane id="PackagesPane" />
126 144
       <pane id="ProjectPane">
127 145
         <subPane>
128 146
           <expand>
@@ -157,21 +175,19 @@
157 175
           <select />
158 176
         </subPane>
159 177
       </pane>
160
-      <pane id="Scratches" />
161
-      <pane id="PackagesPane" />
162
-      <pane id="AndroidView" />
163 178
       <pane id="Scope" />
164 179
     </panes>
165 180
   </component>
166 181
   <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" />
182
+    <property name="GO_FMT" value="false" />
169 183
     <property name="WebServerToolWindowFactoryState" value="false" />
170 184
     <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" />
185
+    <property name="com.android.tools.idea.instantapp.provision.ProvisionBeforeRunTaskProvider.myTimeStamp" value="1544133683494" />
173 186
     <property name="com.intellij.testIntegration.createTest.CreateTestDialog.defaultLibrary" value="JUnit4" />
174
-    <property name="GO_FMT" value="false" />
187
+    <property name="jdk.selected.JAVA_MODULE" value="1.8" />
188
+    <property name="last_opened_file_path" value="$PROJECT_DIR$" />
189
+    <property name="nodejs_interpreter_path.stuck_in_default_project" value="undefined stuck path" />
190
+    <property name="settings.editor.selected.configurable" value="configurable.group.appearance" />
175 191
   </component>
176 192
   <component name="RecentsManager">
177 193
     <key name="CreateTestDialog.RecentsKey">
@@ -193,90 +209,98 @@
193 209
       </list>
194 210
     </option>
195 211
   </component>
196
-  <component name="RunManager">
212
+  <component name="RunManager" selected="JUnit.ArrazTest">
197 213
     <configuration default="true" type="Applet" factoryName="Applet">
198
-      <option name="WIDTH" value="400" />
199
-      <option name="HEIGHT" value="300" />
200 214
       <option name="POLICY_FILE" value="$APPLICATION_HOME_DIR$/bin/appletviewer.policy" />
201
-      <module />
215
+      <method v="2">
216
+        <option name="Make" enabled="true" />
217
+      </method>
202 218
     </configuration>
203 219
     <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 220
       <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 />
221
+      <method v="2">
222
+        <option name="Make" enabled="true" />
223
+      </method>
216 224
     </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" />
225
+    <configuration name="ArrazTest" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
226
+      <module name="arraz" />
227
+      <option name="PACKAGE_NAME" value="" />
228
+      <option name="MAIN_CLASS_NAME" value="ArrazTest" />
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 name="ArrazTest.test1sumValuesOfArray" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
235
+      <module name="arraz" />
236
+      <option name="PACKAGE_NAME" value="" />
237
+      <option name="MAIN_CLASS_NAME" value="ArrazTest" />
238
+      <option name="METHOD_NAME" value="test1sumValuesOfArray" />
239
+      <option name="TEST_OBJECT" value="method" />
240
+      <option name="WORKING_DIRECTORY" value="%MODULE_WORKING_DIR%" />
241
+      <method v="2">
242
+        <option name="Make" enabled="true" />
243
+      </method>
244
+    </configuration>
245
+    <configuration name="ArrazTest.test2sumDoublesOfArray" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
246
+      <module name="arraz" />
247
+      <option name="PACKAGE_NAME" value="" />
248
+      <option name="MAIN_CLASS_NAME" value="ArrazTest" />
249
+      <option name="METHOD_NAME" value="test2sumDoublesOfArray" />
250
+      <option name="TEST_OBJECT" value="method" />
228 251
       <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 />
252
+      <method v="2">
253
+        <option name="Make" enabled="true" />
254
+      </method>
236 255
     </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" />
256
+    <configuration name="ArrazTest.test2sumValuesOfArray" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
257
+      <module name="arraz" />
258
+      <option name="PACKAGE_NAME" value="" />
259
+      <option name="MAIN_CLASS_NAME" value="ArrazTest" />
260
+      <option name="METHOD_NAME" value="test2sumValuesOfArray" />
261
+      <option name="TEST_OBJECT" value="method" />
262
+      <option name="WORKING_DIRECTORY" value="%MODULE_WORKING_DIR%" />
263
+      <method v="2">
264
+        <option name="Make" enabled="true" />
265
+      </method>
266
+    </configuration>
267
+    <configuration default="true" type="JUnit" factoryName="JUnit">
268
+      <option name="WORKING_DIRECTORY" value="%MODULE_WORKING_DIR%" />
269
+      <method v="2">
270
+        <option name="Make" enabled="true" />
271
+      </method>
243 272
     </configuration>
244 273
     <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 274
       <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 275
       <properties />
269 276
       <listeners />
277
+      <method v="2">
278
+        <option name="Make" enabled="true" />
279
+      </method>
270 280
     </configuration>
271 281
     <configuration default="true" type="#org.jetbrains.idea.devkit.run.PluginConfigurationType" factoryName="Plugin">
272 282
       <module name="" />
273 283
       <option name="VM_PARAMETERS" value="-Xmx512m -Xms256m -XX:MaxPermSize=250m -ea" />
274 284
       <option name="PROGRAM_PARAMETERS" />
275 285
       <predefined_log_file id="idea.log" enabled="true" />
286
+      <method v="2">
287
+        <option name="Make" enabled="true" />
288
+      </method>
276 289
     </configuration>
277
-  </component>
278
-  <component name="ShelveChangesManager" show_recycled="false">
279
-    <option name="remove_strategy" value="false" />
290
+    <list>
291
+      <item itemvalue="JUnit.ArrazTest.test1sumValuesOfArray" />
292
+      <item itemvalue="JUnit.ArrazTest.test2sumValuesOfArray" />
293
+      <item itemvalue="JUnit.ArrazTest" />
294
+      <item itemvalue="JUnit.ArrazTest.test2sumDoublesOfArray" />
295
+    </list>
296
+    <recent_temporary>
297
+      <list>
298
+        <item itemvalue="JUnit.ArrazTest" />
299
+        <item itemvalue="JUnit.ArrazTest.test2sumDoublesOfArray" />
300
+        <item itemvalue="JUnit.ArrazTest.test2sumValuesOfArray" />
301
+        <item itemvalue="JUnit.ArrazTest.test1sumValuesOfArray" />
302
+      </list>
303
+    </recent_temporary>
280 304
   </component>
281 305
   <component name="SvnConfiguration">
282 306
     <configuration />
@@ -291,6 +315,7 @@
291 315
       <workItem from="1543955862749" duration="2347000" />
292 316
       <workItem from="1543958998826" duration="113000" />
293 317
       <workItem from="1544020724645" duration="762000" />
318
+      <workItem from="1544126972644" duration="5602000" />
294 319
     </task>
295 320
     <task id="LOCAL-00001" summary="readme and docs">
296 321
       <created>1544021313039</created>
@@ -302,39 +327,72 @@
302 327
     <option name="localTasksCounter" value="2" />
303 328
     <servers />
304 329
   </component>
330
+  <component name="TestHistory">
331
+    <history-entry file="ArrazTest_test2sumValuesOfArray - 2018.12.06 at 15h 54m 53s.xml">
332
+      <configuration name="ArrazTest.test2sumValuesOfArray" configurationId="JUnit" />
333
+    </history-entry>
334
+    <history-entry file="ArrazTest - 2018.12.06 at 15h 56m 29s.xml">
335
+      <configuration name="ArrazTest" configurationId="JUnit" />
336
+    </history-entry>
337
+    <history-entry file="ArrazTest - 2018.12.06 at 16h 05m 45s.xml">
338
+      <configuration name="ArrazTest" configurationId="JUnit" />
339
+    </history-entry>
340
+    <history-entry file="ArrazTest_test2sumDoublesOfArray - 2018.12.06 at 16h 28m 52s.xml">
341
+      <configuration name="ArrazTest.test2sumDoublesOfArray" configurationId="JUnit" />
342
+    </history-entry>
343
+    <history-entry file="ArrazTest - 2018.12.06 at 16h 28m 57s.xml">
344
+      <configuration name="ArrazTest" configurationId="JUnit" />
345
+    </history-entry>
346
+    <history-entry file="ArrazTest - 2018.12.06 at 16h 31m 00s.xml">
347
+      <configuration name="ArrazTest" configurationId="JUnit" />
348
+    </history-entry>
349
+    <history-entry file="ArrazTest - 2018.12.06 at 16h 36m 54s.xml">
350
+      <configuration name="ArrazTest" configurationId="JUnit" />
351
+    </history-entry>
352
+    <history-entry file="ArrazTest - 2018.12.06 at 16h 37m 24s.xml">
353
+      <configuration name="ArrazTest" configurationId="JUnit" />
354
+    </history-entry>
355
+    <history-entry file="ArrazTest - 2018.12.06 at 16h 41m 54s.xml">
356
+      <configuration name="ArrazTest" configurationId="JUnit" />
357
+    </history-entry>
358
+    <history-entry file="ArrazTest - 2018.12.06 at 16h 42m 33s.xml">
359
+      <configuration name="ArrazTest" configurationId="JUnit" />
360
+    </history-entry>
361
+  </component>
305 362
   <component name="TimeTrackingManager">
306
-    <option name="totallyTimeSpent" value="3222000" />
363
+    <option name="totallyTimeSpent" value="8824000" />
307 364
   </component>
308 365
   <component name="ToolWindowManager">
309
-    <frame x="242" y="45" width="1538" height="962" extended-state="0" />
310
-    <editor active="true" />
366
+    <frame x="0" y="23" width="1280" height="723" extended-state="6" />
311 367
     <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" />
368
+      <window_info active="true" content_ui="combo" id="Project" order="0" visible="true" weight="0.26171243" />
369
+      <window_info id="Structure" order="1" weight="0.25" />
370
+      <window_info id="Image Layers" order="2" />
371
+      <window_info id="Designer" order="3" />
372
+      <window_info id="UI Designer" order="4" />
373
+      <window_info id="Capture Tool" order="5" />
374
+      <window_info id="Favorites" order="6" side_tool="true" />
375
+      <window_info anchor="bottom" id="Database Changes" show_stripe_button="false" />
376
+      <window_info anchor="bottom" id="Messages" weight="0.3296355" />
377
+      <window_info anchor="bottom" id="Message" order="0" />
378
+      <window_info anchor="bottom" id="Find" order="1" />
379
+      <window_info anchor="bottom" id="Run" order="2" visible="true" weight="0.3296355" />
380
+      <window_info anchor="bottom" id="Debug" order="3" weight="0.4" />
381
+      <window_info anchor="bottom" id="Cvs" order="4" weight="0.25" />
382
+      <window_info anchor="bottom" id="Inspection" order="5" weight="0.4" />
383
+      <window_info anchor="bottom" id="TODO" order="6" />
384
+      <window_info anchor="bottom" id="Terminal" order="7" />
385
+      <window_info anchor="bottom" id="Event Log" order="8" side_tool="true" />
386
+      <window_info anchor="bottom" id="Version Control" order="9" />
387
+      <window_info anchor="right" id="Commander" order="0" weight="0.4" />
388
+      <window_info anchor="right" id="Ant Build" order="1" weight="0.25" />
389
+      <window_info anchor="right" content_ui="combo" id="Hierarchy" order="2" weight="0.25" />
390
+      <window_info anchor="right" id="Palette" order="3" />
391
+      <window_info anchor="right" id="Capture Analysis" order="4" />
392
+      <window_info anchor="right" id="Theme Preview" order="5" />
393
+      <window_info anchor="right" id="Database" order="6" />
394
+      <window_info anchor="right" id="Palette&#9;" order="7" />
395
+      <window_info anchor="right" id="Maven Projects" order="8" />
338 396
     </layout>
339 397
   </component>
340 398
   <component name="TypeScriptGeneratedFilesManager">
@@ -347,111 +405,36 @@
347 405
     <MESSAGE value="readme and docs" />
348 406
     <option name="LAST_COMMIT_MESSAGE" value="readme and docs" />
349 407
   </component>
350
-  <component name="XDebuggerManager">
351
-    <breakpoint-manager />
352
-    <watches-manager />
353
-  </component>
354 408
   <component name="editorHistoryManager">
355 409
     <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>
378
-    </entry>
379
-    <entry file="file://$PROJECT_DIR$/README.md">
380
-      <provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
381
-        <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 />
385
-          </first_editor>
386
-          <second_editor />
387
-        </state>
388
-      </provider>
389
-    </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
-    <entry file="file://$PROJECT_DIR$/arraz/src/main/java/Arraz.java">
399
-      <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 />
403
-        </state>
404
-      </provider>
405
-    </entry>
406
-    <entry file="file://$PROJECT_DIR$/arraz/src/test/java/ArrazTest.java">
407
-      <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>
410
+      <provider selected="true" editor-type-id="text-editor" />
432 411
     </entry>
433 412
     <entry file="file://$PROJECT_DIR$/arraz/src/main/java/Arraz.java">
434 413
       <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 />
414
+        <state relative-caret-position="990">
415
+          <caret line="66" lean-forward="true" selection-start-line="66" selection-end-line="66" />
416
+          <folding>
417
+            <element signature="e#1055#1056#0" expanded="true" />
418
+            <element signature="e#1093#1094#0" expanded="true" />
419
+          </folding>
438 420
         </state>
439 421
       </provider>
440 422
     </entry>
441 423
     <entry file="file://$PROJECT_DIR$/arraz/src/test/java/ArrazTest.java">
442 424
       <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 />
425
+        <state relative-caret-position="1525">
426
+          <caret line="141" column="32" selection-start-line="141" selection-start-column="32" selection-end-line="141" selection-end-column="32" />
427
+          <folding>
428
+            <element signature="imports" expanded="true" />
429
+          </folding>
446 430
         </state>
447 431
       </provider>
448 432
     </entry>
449 433
     <entry file="file://$PROJECT_DIR$/README.md">
450 434
       <provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
451 435
         <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 />
436
+          <first_editor relative-caret-position="270">
437
+            <caret line="18" selection-start-line="18" selection-end-line="18" />
455 438
           </first_editor>
456 439
           <second_editor />
457 440
         </state>

+ 69
- 0
arraz/src/main/java/Arraz.java Zobrazit soubor

@@ -1,2 +1,71 @@
1 1
 public class Arraz {
2
+
3
+
4
+    public static int sumIntArray(int[] arr) {
5
+        int result = 0;
6
+        for (int number: arr) {
7
+            result += number;
8
+        }
9
+        return result;
10
+    }
11
+
12
+    public static double sumDoubleArray(double[] arr) {
13
+        double result = 0;
14
+        for (double number: arr) {
15
+            result += number;
16
+        }
17
+        return result;
18
+    }
19
+
20
+
21
+    public static int sumValuesOf2Array(int[] arr1, int[] arr2) {
22
+
23
+        int firstAmount = sumIntArray(arr1);
24
+
25
+        int secondAmount = sumIntArray(arr2);
26
+
27
+        int amount = firstAmount + secondAmount;
28
+
29
+        return amount;
30
+    }
31
+
32
+    public static double sumDoublesOf2Array(double[] arr1, double[] arr2) {
33
+
34
+        double firstAmount = sumDoubleArray(arr1);
35
+
36
+        double secondAmount = sumDoubleArray(arr2);
37
+
38
+        double amount = firstAmount + secondAmount;
39
+
40
+        return amount;
41
+
42
+    }
43
+
44
+
45
+    public static int averageOfArrays(int[] arr) {
46
+
47
+       return sumIntArray(arr)/arr.length;
48
+    }
49
+
50
+    public static double doubleAverageOfArrays(double[] arr) {
51
+        return sumDoubleArray(arr)/arr.length;
52
+    }
53
+
54
+
55
+    public static boolean containsValue(int[] arr, int number) {
56
+        for (int n : arr) {
57
+            if(number == n){
58
+                return true;
59
+            }
60
+        }
61
+                return false;
62
+    }
63
+
64
+    public static int[] reverseArray(int[] arr) {
65
+        int temp;
66
+        for(int i = 0; i < arr.length; i++){
67
+
68
+        }
69
+
70
+    }
2 71
 }

+ 144
- 0
arraz/src/test/java/ArrazTest.java Zobrazit soubor

@@ -1,5 +1,149 @@
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 testSumIntArray(){
10
+        int[] arr = {1,2,3};
11
+
12
+        int expected = 6;
13
+        int actual = Arraz.sumIntArray(arr);
14
+
15
+        Assert.assertEquals(expected,actual,.01);
16
+    }
17
+
18
+    @Test
19
+    public void testSumDoubleArray(){
20
+        double[] arr = {1.1,2.2,3.3};
21
+
22
+        double expected = 6.6;
23
+        double actual = Arraz.sumDoubleArray(arr);
24
+
25
+        Assert.assertEquals(expected,actual,.01);
26
+    }
27
+
28
+    @Test
29
+    public void test1sumValuesOfArray(){
30
+        int[] arr1 = {1,2,3,4,5};
31
+        int[] arr2 = {2,3,4,5,6};
32
+
33
+        int actual = Arraz.sumValuesOf2Array(arr1,arr2);
34
+
35
+        int expected = 35;
36
+
37
+        Assert.assertEquals(expected,actual,.01);
38
+
39
+    }
40
+
41
+    @Test
42
+    public void test2sumValuesOfArray(){
43
+        int[] arr1 = {3,3,3};
44
+        int[] arr2 = {4,4,4};
45
+
46
+        int actual = Arraz.sumValuesOf2Array(arr1,arr2);
47
+        int expected = 21;
48
+
49
+        Assert.assertEquals(actual,expected,.01);
50
+    }
51
+
52
+    @Test
53
+    public void test1sumDoublesOfArray(){
54
+        double[] arr1 = {1.1,2.2,3.3};
55
+        double[] arr2 = {4.4,5.5,6.6};
56
+
57
+        double expected = 23.1;
58
+        double actual = Arraz.sumDoublesOf2Array(arr1,arr2);
59
+
60
+        Assert.assertEquals(expected,actual,.01);
61
+    }
62
+
63
+
64
+    @Test
65
+    public void test2sumDoublesOfArray(){
66
+        double[] arr1 = {7.7,8.8,9.9};
67
+        double[] arr2 = {10.1,11.11,12.12};
68
+
69
+        double expected = 59.73;
70
+        double actual = Arraz.sumDoublesOf2Array(arr1,arr2);
71
+
72
+        Assert.assertEquals(expected,actual,.01);
73
+    }
74
+
75
+    @Test
76
+    public void test1averageOfArrays(){
77
+        int[] arr = {1,2,3,4,5};
78
+
79
+        double expected = 3;
80
+        double actual = Arraz.averageOfArrays(arr);
81
+
82
+        Assert.assertEquals(expected,actual,.01);
83
+    }
84
+
85
+    @Test
86
+    public void test2averageOfArrays(){
87
+        int[] arr = {6,7,8,9,10};
88
+
89
+        int expected = 8;
90
+        int actual = Arraz.averageOfArrays(arr);
91
+
92
+        Assert.assertEquals(expected,actual,.01);
93
+    }
94
+
95
+    @Test
96
+    public void test1doubleAverageOfArrays(){
97
+        double[] arr = {1.1,2.2,3.3};
98
+
99
+        double expected = 2.2;
100
+        double actual = Arraz.doubleAverageOfArrays(arr);
101
+
102
+        Assert.assertEquals(expected,actual,.01);
103
+    }
104
+
105
+    @Test
106
+    public void test2doubleAverageOfArrays(){
107
+        double[] arr = {4.4,5.5,6.6};
108
+
109
+        double expected = 5.5;
110
+        double actual = Arraz.doubleAverageOfArrays(arr);
111
+
112
+        Assert.assertEquals(expected,actual,.01);
113
+    }
114
+
115
+    @Test
116
+    public void test1containsValue(){
117
+        int[] arr = {1,2,3,4,5};
118
+        int number = 5;
119
+
120
+
121
+        boolean actual = Arraz.containsValue(arr,number);
122
+
123
+        Assert.assertTrue(actual);
124
+    }
125
+
126
+    @Test
127
+    public void test2containsValue(){
128
+        int[] arr = {1,2,3,4,5};
129
+        int number = 6;
130
+
131
+
132
+        boolean actual = Arraz.containsValue(arr,number);
133
+
134
+        Assert.assertFalse(actual);
135
+    }
136
+
137
+    @Test
138
+    public void test1reverseArray(){
139
+        int[] arr = {1,2,3,4,5};
140
+
141
+        int[] expected = {5,4,3,2,1};
142
+        int[] actual = Arraz.reverseArray(arr);
143
+
144
+        Assert.assertEquals(expected,actual);
145
+
146
+
147
+
148
+    }
5 149
 }