+= tests fix
This commit is contained in:
+1
-1
@@ -2,7 +2,7 @@ package foo
|
||||
|
||||
import java.util.*
|
||||
|
||||
fun <T> ArrayList<T>.plus(other: Collection<T>): List<T> {
|
||||
fun <T> ArrayList<T>.plus(other: Collection<T>): ArrayList<T> {
|
||||
val c = ArrayList<T>()
|
||||
c.addAll(this)
|
||||
c.addAll(other)
|
||||
|
||||
@@ -43,7 +43,7 @@ class FancyLines() {
|
||||
context.bezierCurveTo(width * Math.random(), height * Math.random(),
|
||||
width * Math.random(), height * Math.random(), x, y);
|
||||
|
||||
hue += Math.random() * 10;
|
||||
hue += (Math.random() * 10).toInt();
|
||||
|
||||
context.strokeStyle = "hsl($hue, 50%, 50%)";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user