+= tests fix

This commit is contained in:
Evgeny Gerashchenko
2014-07-29 00:07:34 +04:00
parent b86affaa3a
commit 90b065e82b
8 changed files with 6 additions and 24 deletions
@@ -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%)";