Nathan Hall vor 6 Jahren
Ursprung
Commit
c2d5f5f415

BIN
arraz/.DS_Store Datei anzeigen


+ 16
- 0
arraz/.idea/compiler.xml Datei anzeigen

@@ -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 Datei anzeigen

@@ -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 Datei anzeigen

@@ -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 Datei anzeigen

@@ -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 Datei anzeigen

@@ -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>

+ 331
- 0
arraz/.idea/workspace.xml Datei anzeigen

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

+ 1
- 2
arraz/arraz.iml Datei anzeigen

@@ -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>

+ 24
- 0
arraz/src/main/java/Arraz.java Datei anzeigen

@@ -1,2 +1,26 @@
1 1
 public class Arraz {
2
+
3
+    public int sumValuesOfArray(int[] arr) {
4
+        int sum = 0;
5
+
6
+        for (int i : arr){
7
+            sum += i;
8
+        }
9
+
10
+        return sum;
11
+
12
+    }
13
+
14
+    public double sumDoublesOfArray(double[] arr) {
15
+        double sum = 0;
16
+
17
+        for (double d : arr){
18
+            sum += d;
19
+        }
20
+
21
+        return sum;
22
+
23
+    }
24
+
25
+
2 26
 }

+ 52
- 0
arraz/src/test/java/ArrazTest.java Datei anzeigen

@@ -1,5 +1,57 @@
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
+    int[] arr = {2,2,2,2,2};
9
+    int[] arr2 = {1,2,3,4,5};
10
+
11
+    @Test
12
+    public void test1sumValuesOfArray(){
13
+        Arraz arraz = new Arraz();
14
+
15
+        int expected = 10;
16
+        int actual = arraz.sumValuesOfArray(arr);
17
+
18
+        Assert.assertEquals(expected, actual);
19
+    }
20
+
21
+
22
+    @Test
23
+    public void test2sumValuesOfArray(){
24
+        Arraz arraz = new Arraz();
25
+
26
+        int expected = 15;
27
+        int actual = arraz.sumValuesOfArray(arr2);
28
+
29
+        Assert.assertEquals(expected, actual);
30
+    }
31
+
32
+    double[] arr3 = {2.0,2.0,2.0,2.0,2.0};
33
+
34
+
35
+    @Test
36
+    public void test1DoublesOfArray(){
37
+        Arraz arraz = new Arraz();
38
+
39
+        double expected = 10.0;
40
+        double actual = arraz.sumDoublesOfArray(arr3);
41
+
42
+        Assert.assertEquals(expected, actual);
43
+    }
44
+
45
+    double[] arr4 = {1.5 , 2.5 , 3.0,4.75,5.25};
46
+
47
+    @Test
48
+    public void test2DoublesOfArray(){
49
+        Arraz arraz = new Arraz();
50
+
51
+        double expected = 17.0;
52
+        double actual = arraz.sumDoublesOfArray(arr4);
53
+
54
+        Assert.assertEquals(expected, actual);
55
+    }
56
+
5 57
 }