File tree 1 file changed +6
-6
lines changed
resources/minitscript/tests
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -37,31 +37,31 @@ function: main()
37
37
console.printLine()
38
38
#
39
39
$count = 1000
40
- console.print("Creating array of integers with " + $count + " entries")
41
40
$startTime = time.getCurrentMillis()
42
- #
43
41
$array = []
44
42
for ($i = 0, $i < $count, ++$i)
45
43
$array[] = $count - $i
46
44
end
45
+ $endTime = time.getCurrentMillis()
46
+ console.printLine()
47
+ console.printLine("Creating array of integers: Time: " + ($endTime - $startTime) + ": " + $array)
48
+ console.printLine()
47
49
48
50
$arrayA = $array
49
51
$arrayB = $array
50
52
# test bubble sort A
51
53
$startTime = time.getCurrentMillis()
52
54
bubbleSortA($arrayA)
53
55
$endTime = time.getCurrentMillis()
54
- console.printLine($arrayA)
55
56
console.printLine()
56
- console.printLine("bubbleSortA: Time: " + ($endTime - $startTime) + ": " + $array )
57
+ console.printLine("bubbleSortA: Time: " + ($endTime - $startTime) + ": " + $arrayA )
57
58
console.printLine()
58
59
59
60
# test bubble sort B
60
61
$startTime = time.getCurrentMillis()
61
62
bubbleSortB($arrayB)
62
63
$endTime = time.getCurrentMillis()
63
- console.printLine($arrayB)
64
64
console.printLine()
65
- console.printLine("bubbleSortB: Time: " + ($endTime - $startTime) + ": " + $array )
65
+ console.printLine("bubbleSortB: Time: " + ($endTime - $startTime) + ": " + $arrayB )
66
66
console.printLine()
67
67
end
You can’t perform that action at this time.
0 commit comments