File tree Expand file tree Collapse file tree 5 files changed +4
-9
lines changed Expand file tree Collapse file tree 5 files changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,6 @@ lazy val commonSettings = Seq(
2020 scalacOptions in (Compile , console) := Seq .empty,
2121 libraryDependencies ++= Seq (
2222 " net.java.dev.jna" % " jna" % " 5.6.0" ,
23- " org.typelevel" %% " cats-core" % " 2.3.1" ,
2423 " com.chuusai" %% " shapeless" % " 2.3.3" ,
2524 " org.scalatest" %% " scalatest" % " 3.2.2" % Test
2625 )
Original file line number Diff line number Diff line change 11package metacall
22
3- import cats .implicits ._
43import com .sun .jna ._
54import metacall .util ._
65
Original file line number Diff line number Diff line change @@ -2,7 +2,6 @@ package metacall
22
33import scala .annotation .implicitNotFound
44
5- import cats .implicits ._
65import com .sun .jna ._
76import com .sun .jna .ptr .PointerByReference
87import metacall .util ._
Original file line number Diff line number Diff line change 11package metacall
22
3- import cats .implicits ._
43import metacall .instances ._
54import org .scalatest .flatspec .AnyFlatSpec
65
@@ -68,8 +67,8 @@ class CallerSpec extends AnyFlatSpec {
6867 val rangeValues : List [ArrayValue ] =
6968 List .range(1 , 50 ).map(n => ArrayValue (Vector .range(1 , n).map(IntValue )))
7069
71- val resSum = rangeValues
72- .traverse { range =>
70+ val resSum = Future
71+ .traverse(rangeValues) { range =>
7372 Future (Caller .blocking.callV(" sumList" , range :: Nil )) map {
7473 case n : NumericValue [_] => n.long.value
7574 case other => fail(" Returned value should be a number, but got " + other)
@@ -89,8 +88,8 @@ class CallerSpec extends AnyFlatSpec {
8988 val rangeValues : List [ArrayValue ] =
9089 List .range(1 , 50 ).map(n => ArrayValue (Vector .range(1 , n).map(IntValue )))
9190
92- val resSum = rangeValues
93- .traverse { range =>
91+ val resSum = Future
92+ .traverse(rangeValues) { range =>
9493 Caller .callV(" sumList" , range :: Nil ) map {
9594 case n : NumericValue [_] => n.long.value
9695 case other => fail(" Returned value should be a number, but got " + other)
Original file line number Diff line number Diff line change @@ -2,7 +2,6 @@ package metacall
22
33import java .nio .file .Paths
44
5- import cats .implicits ._
65import com .sun .jna ._
76import com .sun .jna .ptr .PointerByReference
87import metacall .instances ._
You can’t perform that action at this time.
0 commit comments