mirror of
https://github.com/unisonweb/unison.git
synced 2024-11-14 07:51:12 +03:00
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:
commit
ae6a878116
@ -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",
|
||||
|
@ -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 =>
|
||||
|
Loading…
Reference in New Issue
Block a user