Skip to content

Commit 4efe077

Browse files
committed
v5.0.8-RC: addressed review comments
1 parent 7ca8759 commit 4efe077

File tree

4 files changed

+11
-14
lines changed

4 files changed

+11
-14
lines changed

build.sbt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,6 @@ val scrypto = "org.scorexfoundation" %% "scrypto" % "2.3.0"
8282
val scryptoDependency =
8383
libraryDependencies += "org.scorexfoundation" %%% "scrypto" % "2.3.0"
8484

85-
//val scorexUtil = "org.scorexfoundation" %% "scorex-util" % "0.1.8"
86-
//val debox = "org.scorexfoundation" %% "debox" % "0.9.0"
8785
val scorexUtil = "org.scorexfoundation" %% "scorex-util" % "0.2.0"
8886
val scorexUtilDependency =
8987
libraryDependencies += "org.scorexfoundation" %%% "scorex-util" % "0.2.0"
@@ -241,7 +239,6 @@ lazy val interpreter = crossProject(JVMPlatform, JSPlatform)
241239
crossScalaSettingsJS,
242240
libraryDependencies ++= Seq (
243241
"org.scala-js" %%% "scala-js-macrotask-executor" % "1.0.0"
244-
// ("org.scala-js" %%% "scalajs-java-securerandom" % "1.0.0").cross(CrossVersion.for3Use2_13)
245242
),
246243
useYarn := true
247244
)

common/shared/src/main/scala/scalan/util/CollectionUtil.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ object CollectionUtil {
213213
* @tparam B the type of the elements in the other structure, a supertype of A
214214
* @return true if the two nested structures have the same elements in the same order, false otherwise
215215
*/
216-
def sameElements2[B >: A](that: GenIterable[B]): Boolean = {
216+
def sameElementsNested[B >: A](that: GenIterable[B]): Boolean = {
217217
val i1: Iterator[Any] = flattenIter(xs.iterator)
218218
val i2: Iterator[Any] = flattenIter(that.iterator)
219219
i1.sameElements(i2)

common/shared/src/test/scala/scalan/util/CollectionUtilTests.scala

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -125,15 +125,15 @@ class CollectionUtilTests extends BaseTests {
125125
}
126126

127127
test("sameElements2") {
128-
Seq(1, 2).sameElements2(List(1, 2)) shouldBe true
129-
new mutable.WrappedArray.ofInt(Array(1, 2)).sameElements2(Vector(1, 2)) shouldBe true
130-
Seq(new mutable.WrappedArray.ofInt(Array(1, 2)), 3).sameElements2(Array(Vector(1, 2), 3)) shouldBe true
131-
Seq(Array(1, 2), 3).sameElements2(Array(Vector(1, 2), 3)) shouldBe true
132-
Seq(Array(1, 2), Option(3)).sameElements2(Array(Vector(1, 2), List(3))) shouldBe false
133-
134-
Seq(1, 2).sameElements2(List(1, 2, 3)) shouldBe false
135-
new mutable.WrappedArray.ofInt(Array(1, 2, 3)).sameElements2(Vector(1, 2)) shouldBe false
136-
Seq(new mutable.WrappedArray.ofInt(Array(1, 2, 3)), 3).sameElements2(Array(Vector(1, 2), 3)) shouldBe false
128+
Seq(1, 2).sameElementsNested(List(1, 2)) shouldBe true
129+
new mutable.WrappedArray.ofInt(Array(1, 2)).sameElementsNested(Vector(1, 2)) shouldBe true
130+
Seq(new mutable.WrappedArray.ofInt(Array(1, 2)), 3).sameElementsNested(Array(Vector(1, 2), 3)) shouldBe true
131+
Seq(Array(1, 2), 3).sameElementsNested(Array(Vector(1, 2), 3)) shouldBe true
132+
Seq(Array(1, 2), Option(3)).sameElementsNested(Array(Vector(1, 2), List(3))) shouldBe false
133+
134+
Seq(1, 2).sameElementsNested(List(1, 2, 3)) shouldBe false
135+
new mutable.WrappedArray.ofInt(Array(1, 2, 3)).sameElementsNested(Vector(1, 2)) shouldBe false
136+
Seq(new mutable.WrappedArray.ofInt(Array(1, 2, 3)), 3).sameElementsNested(Array(Vector(1, 2), 3)) shouldBe false
137137

138138
}
139139

graph-ir/src/main/scala/scalan/MethodCalls.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ trait MethodCalls extends Base { self: Scalan =>
7272
neverInvoke == other.neverInvoke &&
7373
isAdapterCall == other.isAdapterCall &&
7474
args.length == other.args.length &&
75-
args.sameElements2(other.args) // this is required in case method have T* arguments
75+
args.sameElementsNested(other.args) // this is required in case method have T* arguments
7676
case _ => false
7777
}
7878
}

0 commit comments

Comments
 (0)