Skip to content

Commit

Permalink
bump scala version. tweak code to be more compatible. document build.sbt
Browse files Browse the repository at this point in the history
  • Loading branch information
SwiftEngineer committed Dec 30, 2019
1 parent 816c74b commit 4af6c81
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Expand Up @@ -3,7 +3,7 @@ language: scala
dist: trusty

scala:
- 2.12.8
- 2.12.10
- 2.13.1

script:
Expand Down
Expand Up @@ -122,7 +122,7 @@ class ArithmeticBenchmarks {
val sizes = List(2, 4, 8, 16, 32, 64, 128)

import scala.collection.compat._
sizes.view.map({ i => i -> inner(i) }).to(Map)
sizes.view.map({ i => i -> inner(i) }).toMap
}

@Benchmark
Expand Down
1 change: 1 addition & 0 deletions build.sbt
Expand Up @@ -45,6 +45,7 @@ lazy val benchmarks = project
// Scala's own Parser combinators
"org.scala-lang.modules" %% "scala-parser-combinators" % "1.1.2",

// Warning: This compat module only works with scala 2.13
"org.scala-lang.modules" %%% "scala-collection-compat" % "2.1.3"),

sourceDirectory in Jmh := (sourceDirectory in Compile).value)
Expand Down

0 comments on commit 4af6c81

Please sign in to comment.