Merge pull request #210 from unisonweb/yak/scala-2.12.6

update to scala 2.12.6 and fix deprecation errors
This commit is contained in:
Arya Irani 2018-06-29 10:19:13 -04:00 committed by GitHub
commit ae6a878116
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 5 deletions

View File

@ -14,7 +14,7 @@ lazy val commonSettings = Seq(
//"-XX:LiveNodeCountInliningCutoff"
),
organization := "org.unisonweb",
scalaVersion := "2.12.4",
scalaVersion := "2.12.6",
scalacOptions ++= Seq(
"-feature",
"-deprecation",

View File

@ -30,7 +30,7 @@ object StreamTests {
test("filter") { implicit T =>
equal(
Stream.from(0).take(10000).filter(L_B(_ % 2 == 0)).sumIntegers,
(0 until 10000).filter(_.toDouble % 2 == 0).sum
(0 until 10000).filter(_ % 2 == 0).sum
)
},
test("takeWhile") { implicit T =>
@ -40,7 +40,7 @@ object StreamTests {
)
equal(
Stream.from(0.0, by = 1.0).take(100).takeWhile(D_B(_ < 50.0)).sumFloats,
(0.0 until 100.0 by 1.0).takeWhile(_ < 50.0).sum
(0 until 100).takeWhile(_ < 50).sum
)
},
test("dropWhile") { implicit T =>
@ -86,13 +86,13 @@ object StreamTests {
equal(
Stream.from(0.0, by = 1.0).take(10000).foldLeft(0l)(
LD_L((z, d) => if (d.toInt % 2 == 0) z else z + 1)),
(0.0 until 10000 by 1.0).count(_.toInt % 2 == 0)
(0 until 10000).count(_ % 2 == 0)
)
},
test("foldLeft (+) double") { implicit T =>
equal(
Stream.from(0.0, by = 1.0).take(10000).foldLeft(0.0)(DD_D(_ + _)),
(0.0 until 10000 by 1.0).sum
(0 until 10000).sum
)
},
test("scanLeft0 (+) long") { implicit T =>