Browse Source

Something

William Brown 6 years ago
parent
commit
c022d527e3
2 changed files with 35 additions and 47 deletions
  1. 34
    46
      .idea/workspace.xml
  2. 1
    1
      arraz/src/test/java/ArrazTest.java

+ 34
- 46
.idea/workspace.xml View File

2
 <project version="4">
2
 <project version="4">
3
   <component name="ChangeListManager">
3
   <component name="ChangeListManager">
4
     <list default="true" id="3455511b-a100-4bbd-b07c-68f009bc8dbc" name="Default" comment="">
4
     <list default="true" id="3455511b-a100-4bbd-b07c-68f009bc8dbc" name="Default" comment="">
5
-      <change beforePath="$PROJECT_DIR$/arraz/src/main/java/Arraz.java" beforeDir="false" afterPath="$PROJECT_DIR$/arraz/src/main/java/Arraz.java" afterDir="false" />
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/test/java/ArrazTest.java" beforeDir="false" afterPath="$PROJECT_DIR$/arraz/src/test/java/ArrazTest.java" afterDir="false" />
6
       <change beforePath="$PROJECT_DIR$/arraz/src/test/java/ArrazTest.java" beforeDir="false" afterPath="$PROJECT_DIR$/arraz/src/test/java/ArrazTest.java" afterDir="false" />
7
     </list>
7
     </list>
8
     <ignored path="$PROJECT_DIR$/arraz/target/" />
8
     <ignored path="$PROJECT_DIR$/arraz/target/" />
25
     <session id="-1803996711">
25
     <session id="-1803996711">
26
       <usages-collector id="statistics.lifecycle.project">
26
       <usages-collector id="statistics.lifecycle.project">
27
         <counts>
27
         <counts>
28
-          <entry key="project.closed" value="5" />
28
+          <entry key="project.closed" value="7" />
29
           <entry key="project.open.time.14" value="2" />
29
           <entry key="project.open.time.14" value="2" />
30
-          <entry key="project.open.time.2" value="1" />
30
+          <entry key="project.open.time.2" value="2" />
31
+          <entry key="project.open.time.3" value="1" />
31
           <entry key="project.open.time.4" value="2" />
32
           <entry key="project.open.time.4" value="2" />
32
-          <entry key="project.opened" value="5" />
33
+          <entry key="project.opened" value="7" />
33
         </counts>
34
         </counts>
34
       </usages-collector>
35
       </usages-collector>
35
       <usages-collector id="statistics.file.types.edit">
36
       <usages-collector id="statistics.file.types.edit">
36
         <counts>
37
         <counts>
37
-          <entry key="JAVA" value="9947" />
38
+          <entry key="JAVA" value="9964" />
38
           <entry key="XML" value="4" />
39
           <entry key="XML" value="4" />
39
         </counts>
40
         </counts>
40
       </usages-collector>
41
       </usages-collector>
51
       <file pinned="false" current-in-tab="true">
52
       <file pinned="false" current-in-tab="true">
52
         <entry file="file://$PROJECT_DIR$/arraz/src/main/java/Arraz.java">
53
         <entry file="file://$PROJECT_DIR$/arraz/src/main/java/Arraz.java">
53
           <provider selected="true" editor-type-id="text-editor">
54
           <provider selected="true" editor-type-id="text-editor">
54
-            <state relative-caret-position="1335">
55
-              <caret line="89" column="9" lean-forward="true" selection-start-line="89" selection-start-column="9" selection-end-line="89" selection-end-column="9" />
55
+            <state relative-caret-position="330">
56
+              <caret line="341" column="18" lean-forward="true" selection-start-line="341" selection-start-column="18" selection-end-line="341" selection-end-column="18" />
56
               <folding>
57
               <folding>
57
                 <element signature="imports" expanded="true" />
58
                 <element signature="imports" expanded="true" />
58
-                <element signature="e#504#505#0" expanded="true" />
59
-                <element signature="e#561#562#0" expanded="true" />
60
-                <element signature="e#616#617#0" expanded="true" />
61
-                <element signature="e#674#675#0" expanded="true" />
62
-                <element signature="e#4880#4881#0" expanded="true" />
63
-                <element signature="e#4918#4919#0" expanded="true" />
64
               </folding>
59
               </folding>
65
             </state>
60
             </state>
66
           </provider>
61
           </provider>
69
       <file pinned="false" current-in-tab="false">
64
       <file pinned="false" current-in-tab="false">
70
         <entry file="file://$PROJECT_DIR$/arraz/src/test/java/ArrazTest.java">
65
         <entry file="file://$PROJECT_DIR$/arraz/src/test/java/ArrazTest.java">
71
           <provider selected="true" editor-type-id="text-editor">
66
           <provider selected="true" editor-type-id="text-editor">
72
-            <state relative-caret-position="3090">
73
-              <caret line="206" column="37" lean-forward="true" selection-start-line="206" selection-start-column="37" selection-end-line="206" selection-end-column="37" />
67
+            <state relative-caret-position="4770">
68
+              <caret line="322" column="48" selection-start-line="322" selection-start-column="48" selection-end-line="322" selection-end-column="48" />
74
               <folding>
69
               <folding>
75
                 <element signature="imports" expanded="true" />
70
                 <element signature="imports" expanded="true" />
76
-                <element signature="e#8537#8546#0" expanded="true" />
77
-                <element signature="e#8823#8832#0" expanded="true" />
78
               </folding>
71
               </folding>
79
             </state>
72
             </state>
80
           </provider>
73
           </provider>
98
       <find>remove</find>
91
       <find>remove</find>
99
       <find>findindex</find>
92
       <find>findindex</find>
100
       <find>copy</find>
93
       <find>copy</find>
94
+      <find>sort</find>
101
     </findStrings>
95
     </findStrings>
102
     <replaceStrings>
96
     <replaceStrings>
103
       <replace>public</replace>
97
       <replace>public</replace>
137
       </MavenImportingSettings>
131
       </MavenImportingSettings>
138
     </option>
132
     </option>
139
   </component>
133
   </component>
140
-  <component name="ProjectFrameBounds">
134
+  <component name="ProjectFrameBounds" extendedState="6">
141
     <option name="y" value="22" />
135
     <option name="y" value="22" />
142
     <option name="width" value="1280" />
136
     <option name="width" value="1280" />
143
     <option name="height" value="739" />
137
     <option name="height" value="739" />
212
     <property name="GO_FMT" value="false" />
206
     <property name="GO_FMT" value="false" />
213
     <property name="WebServerToolWindowFactoryState" value="false" />
207
     <property name="WebServerToolWindowFactoryState" value="false" />
214
     <property name="aspect.path.notification.shown" value="true" />
208
     <property name="aspect.path.notification.shown" value="true" />
215
-    <property name="com.android.tools.idea.instantapp.provision.ProvisionBeforeRunTaskProvider.myTimeStamp" value="1544145500059" />
209
+    <property name="com.android.tools.idea.instantapp.provision.ProvisionBeforeRunTaskProvider.myTimeStamp" value="1544197039678" />
216
     <property name="com.intellij.testIntegration.createTest.CreateTestDialog.defaultLibrary" value="JUnit4" />
210
     <property name="com.intellij.testIntegration.createTest.CreateTestDialog.defaultLibrary" value="JUnit4" />
217
     <property name="jdk.selected.JAVA_MODULE" value="1.8" />
211
     <property name="jdk.selected.JAVA_MODULE" value="1.8" />
218
     <property name="last_opened_file_path" value="$PROJECT_DIR$" />
212
     <property name="last_opened_file_path" value="$PROJECT_DIR$" />
239
       </list>
233
       </list>
240
     </option>
234
     </option>
241
   </component>
235
   </component>
242
-  <component name="RunManager" selected="JUnit.ArrazTest">
236
+  <component name="RunManager" selected="JUnit.ArrazTest.testSort2">
243
     <configuration default="true" type="Applet" factoryName="Applet">
237
     <configuration default="true" type="Applet" factoryName="Applet">
244
       <option name="POLICY_FILE" value="$APPLICATION_HOME_DIR$/bin/appletviewer.policy" />
238
       <option name="POLICY_FILE" value="$APPLICATION_HOME_DIR$/bin/appletviewer.policy" />
245
       <method v="2">
239
       <method v="2">
294
         <option name="Make" enabled="true" />
288
         <option name="Make" enabled="true" />
295
       </method>
289
       </method>
296
     </configuration>
290
     </configuration>
297
-    <configuration name="ArrazTest.testRemoveElementFromArray3" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
291
+    <configuration name="ArrazTest.testSort2" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
298
       <module name="arraz" />
292
       <module name="arraz" />
299
       <option name="PACKAGE_NAME" value="" />
293
       <option name="PACKAGE_NAME" value="" />
300
       <option name="MAIN_CLASS_NAME" value="ArrazTest" />
294
       <option name="MAIN_CLASS_NAME" value="ArrazTest" />
301
-      <option name="METHOD_NAME" value="testRemoveElementFromArray3" />
295
+      <option name="METHOD_NAME" value="testSort2" />
302
       <option name="TEST_OBJECT" value="method" />
296
       <option name="TEST_OBJECT" value="method" />
303
       <option name="WORKING_DIRECTORY" value="%MODULE_WORKING_DIR%" />
297
       <option name="WORKING_DIRECTORY" value="%MODULE_WORKING_DIR%" />
304
       <method v="2">
298
       <method v="2">
329
       </method>
323
       </method>
330
     </configuration>
324
     </configuration>
331
     <list>
325
     <list>
332
-      <item itemvalue="JUnit.ArrazTest.testRemoveElementFromArray3" />
333
       <item itemvalue="JUnit.ArrazTest.testFindIndexOf2" />
326
       <item itemvalue="JUnit.ArrazTest.testFindIndexOf2" />
334
       <item itemvalue="JUnit.ArrazTest.testCopyArrayByInterator1" />
327
       <item itemvalue="JUnit.ArrazTest.testCopyArrayByInterator1" />
335
       <item itemvalue="JUnit.ArrazTest.testCopyArrayByInterator2" />
328
       <item itemvalue="JUnit.ArrazTest.testCopyArrayByInterator2" />
336
       <item itemvalue="JUnit.ArrazTest" />
329
       <item itemvalue="JUnit.ArrazTest" />
330
+      <item itemvalue="JUnit.ArrazTest.testSort2" />
337
     </list>
331
     </list>
338
     <recent_temporary>
332
     <recent_temporary>
339
       <list>
333
       <list>
334
+        <item itemvalue="JUnit.ArrazTest.testSort2" />
340
         <item itemvalue="JUnit.ArrazTest" />
335
         <item itemvalue="JUnit.ArrazTest" />
341
         <item itemvalue="JUnit.ArrazTest.testCopyArrayByInterator2" />
336
         <item itemvalue="JUnit.ArrazTest.testCopyArrayByInterator2" />
342
         <item itemvalue="JUnit.ArrazTest.testCopyArrayByInterator1" />
337
         <item itemvalue="JUnit.ArrazTest.testCopyArrayByInterator1" />
343
         <item itemvalue="JUnit.ArrazTest.testFindIndexOf2" />
338
         <item itemvalue="JUnit.ArrazTest.testFindIndexOf2" />
344
-        <item itemvalue="JUnit.ArrazTest.testRemoveElementFromArray3" />
345
       </list>
339
       </list>
346
     </recent_temporary>
340
     </recent_temporary>
347
   </component>
341
   </component>
363
       <workItem from="1544048104554" duration="1398000" />
357
       <workItem from="1544048104554" duration="1398000" />
364
       <workItem from="1544060926907" duration="4177000" />
358
       <workItem from="1544060926907" duration="4177000" />
365
       <workItem from="1544125434968" duration="11066000" />
359
       <workItem from="1544125434968" duration="11066000" />
360
+      <workItem from="1544196949279" duration="205000" />
361
+      <workItem from="1544206032237" duration="356000" />
366
     </task>
362
     </task>
367
     <task id="LOCAL-00001" summary="readme and docs">
363
     <task id="LOCAL-00001" summary="readme and docs">
368
       <created>1544021313039</created>
364
       <created>1544021313039</created>
375
     <servers />
371
     <servers />
376
   </component>
372
   </component>
377
   <component name="TestHistory">
373
   <component name="TestHistory">
378
-    <history-entry file="ArrazTest - 2018.12.06 at 19h 59m 51s.xml">
379
-      <configuration name="ArrazTest" configurationId="JUnit" />
380
-    </history-entry>
381
-    <history-entry file="ArrazTest - 2018.12.06 at 20h 00m 03s.xml">
382
-      <configuration name="ArrazTest" configurationId="JUnit" />
383
-    </history-entry>
384
     <history-entry file="ArrazTest_testCheck2ArraysForEqual3 - 2018.12.06 at 20h 01m 22s.xml">
374
     <history-entry file="ArrazTest_testCheck2ArraysForEqual3 - 2018.12.06 at 20h 01m 22s.xml">
385
       <configuration name="ArrazTest.testCheck2ArraysForEqual3" configurationId="JUnit" />
375
       <configuration name="ArrazTest.testCheck2ArraysForEqual3" configurationId="JUnit" />
386
     </history-entry>
376
     </history-entry>
405
     <history-entry file="ArrazTest - 2018.12.06 at 20h 18m 25s.xml">
395
     <history-entry file="ArrazTest - 2018.12.06 at 20h 18m 25s.xml">
406
       <configuration name="ArrazTest" configurationId="JUnit" />
396
       <configuration name="ArrazTest" configurationId="JUnit" />
407
     </history-entry>
397
     </history-entry>
398
+    <history-entry file="ArrazTest_testSort2 - 2018.12.07 at 10h 36m 38s.xml">
399
+      <configuration name="ArrazTest.testSort2" configurationId="JUnit" />
400
+    </history-entry>
401
+    <history-entry file="ArrazTest_testSort2 - 2018.12.07 at 10h 37m 24s.xml">
402
+      <configuration name="ArrazTest.testSort2" configurationId="JUnit" />
403
+    </history-entry>
408
   </component>
404
   </component>
409
   <component name="TimeTrackingManager">
405
   <component name="TimeTrackingManager">
410
-    <option name="totallyTimeSpent" value="22214000" />
406
+    <option name="totallyTimeSpent" value="22775000" />
411
   </component>
407
   </component>
412
   <component name="ToolWindowManager">
408
   <component name="ToolWindowManager">
413
     <frame x="0" y="22" width="1280" height="739" extended-state="0" />
409
     <frame x="0" y="22" width="1280" height="739" extended-state="0" />
432
       <window_info anchor="bottom" id="Version Control" order="9" />
428
       <window_info anchor="bottom" id="Version Control" order="9" />
433
       <window_info anchor="bottom" id="Database Changes" order="10" show_stripe_button="false" />
429
       <window_info anchor="bottom" id="Database Changes" order="10" show_stripe_button="false" />
434
       <window_info anchor="bottom" id="Messages" order="11" weight="0.32921174" />
430
       <window_info anchor="bottom" id="Messages" order="11" weight="0.32921174" />
435
-      <window_info anchor="right" id="Coverage" side_tool="true" weight="0.32956383" />
436
       <window_info anchor="right" id="Commander" order="0" weight="0.4" />
431
       <window_info anchor="right" id="Commander" order="0" weight="0.4" />
437
       <window_info anchor="right" id="Ant Build" order="1" weight="0.25" />
432
       <window_info anchor="right" id="Ant Build" order="1" weight="0.25" />
438
       <window_info anchor="right" content_ui="combo" id="Hierarchy" order="2" weight="0.25" />
433
       <window_info anchor="right" content_ui="combo" id="Hierarchy" order="2" weight="0.25" />
442
       <window_info anchor="right" id="Database" order="6" />
437
       <window_info anchor="right" id="Database" order="6" />
443
       <window_info anchor="right" id="Palette&#9;" order="7" />
438
       <window_info anchor="right" id="Palette&#9;" order="7" />
444
       <window_info anchor="right" id="Maven Projects" order="8" />
439
       <window_info anchor="right" id="Maven Projects" order="8" />
440
+      <window_info anchor="right" id="Coverage" order="9" side_tool="true" weight="0.32956383" />
445
     </layout>
441
     </layout>
446
   </component>
442
   </component>
447
   <component name="TypeScriptGeneratedFilesManager">
443
   <component name="TypeScriptGeneratedFilesManager">
472
         </state>
468
         </state>
473
       </provider>
469
       </provider>
474
     </entry>
470
     </entry>
475
-    <entry file="file://$PROJECT_DIR$/arraz/src/test/java/ArrazTest.java">
471
+    <entry file="file://$PROJECT_DIR$/arraz/src/main/java/Arraz.java">
476
       <provider selected="true" editor-type-id="text-editor">
472
       <provider selected="true" editor-type-id="text-editor">
477
-        <state relative-caret-position="3090">
478
-          <caret line="206" column="37" lean-forward="true" selection-start-line="206" selection-start-column="37" selection-end-line="206" selection-end-column="37" />
473
+        <state relative-caret-position="330">
474
+          <caret line="341" column="18" lean-forward="true" selection-start-line="341" selection-start-column="18" selection-end-line="341" selection-end-column="18" />
479
           <folding>
475
           <folding>
480
             <element signature="imports" expanded="true" />
476
             <element signature="imports" expanded="true" />
481
-            <element signature="e#8537#8546#0" expanded="true" />
482
-            <element signature="e#8823#8832#0" expanded="true" />
483
           </folding>
477
           </folding>
484
         </state>
478
         </state>
485
       </provider>
479
       </provider>
486
     </entry>
480
     </entry>
487
-    <entry file="file://$PROJECT_DIR$/arraz/src/main/java/Arraz.java">
481
+    <entry file="file://$PROJECT_DIR$/arraz/src/test/java/ArrazTest.java">
488
       <provider selected="true" editor-type-id="text-editor">
482
       <provider selected="true" editor-type-id="text-editor">
489
-        <state relative-caret-position="1335">
490
-          <caret line="89" column="9" lean-forward="true" selection-start-line="89" selection-start-column="9" selection-end-line="89" selection-end-column="9" />
483
+        <state relative-caret-position="4770">
484
+          <caret line="322" column="48" selection-start-line="322" selection-start-column="48" selection-end-line="322" selection-end-column="48" />
491
           <folding>
485
           <folding>
492
             <element signature="imports" expanded="true" />
486
             <element signature="imports" expanded="true" />
493
-            <element signature="e#504#505#0" expanded="true" />
494
-            <element signature="e#561#562#0" expanded="true" />
495
-            <element signature="e#616#617#0" expanded="true" />
496
-            <element signature="e#674#675#0" expanded="true" />
497
-            <element signature="e#4880#4881#0" expanded="true" />
498
-            <element signature="e#4918#4919#0" expanded="true" />
499
           </folding>
487
           </folding>
500
         </state>
488
         </state>
501
       </provider>
489
       </provider>

+ 1
- 1
arraz/src/test/java/ArrazTest.java View File

320
 
320
 
321
     @Test
321
     @Test
322
     public void testSort2(){
322
     public void testSort2(){
323
-        int[] arr = new int[] {1,9,3,4,6,5,7,8,2};
323
+        int[] arr = new int[] {9,8,7,6,5,4,3,2,1};
324
 
324
 
325
         int[] expected  = new int[] {1,2,3,4,5,6,7,8,9};
325
         int[] expected  = new int[] {1,2,3,4,5,6,7,8,9};
326
         int[] actual = arraz.sort(arr);
326
         int[] actual = arraz.sort(arr);