Skip to content
Permalink
Browse files

bump scala version. tweak code to be more compatible. document build.sbt

  • Loading branch information
SwiftEngineer committed Dec 30, 2019
1 parent 816c74b commit 4af6c81b27b05fc6b3849d83d24cdab934acb5ac
Showing with 3 additions and 2 deletions.
  1. +1 −1 .travis.yml
  2. +1 −1 benchmarks/src/main/scala/parseback/benchmarks/ArithmeticBenchmark.scala
  3. +1 −0 build.sbt
@@ -3,7 +3,7 @@ language: scala
dist: trusty

scala:
- 2.12.8
- 2.12.10
- 2.13.1

script:
@@ -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
@@ -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)

0 comments on commit 4af6c81

Please sign in to comment.
You can’t perform that action at this time.