Skip to content

Commit eabf298

Browse files
Update scalafmt-core to 3.8.2 (#316)
* Update scalafmt-core to 3.8.2 * Reformat with scalafmt 3.8.2 Executed command: scalafmt --non-interactive * Add 'Reformat with scalafmt 3.8.2' to .git-blame-ignore-revs
1 parent a7024e7 commit eabf298

File tree

4 files changed

+31
-15
lines changed

4 files changed

+31
-15
lines changed

.git-blame-ignore-revs

+3
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
11
# Scala Steward: Reformat with scalafmt 3.7.5
22
a599d16bf210a097a9b95fea06d96944752f2d9c
3+
4+
# Scala Steward: Reformat with scalafmt 3.8.2
5+
a92ccbb81c858d333d0d6f290e5b3569a8522bd4

.scalafmt.conf

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version = 3.8.1
1+
version = 3.8.2
22
runner.dialect = scala213
33
preset = defaultWithAlign
44
maxColumn = 120

legacy/src/test/scala/org/nomadblacky/scala/samples/collections/TraversableSpec.scala

+9-5
Original file line numberDiff line numberDiff line change
@@ -190,11 +190,15 @@ class TraversableSpec extends FunSpec {
190190

191191
it("unzip3 ... 要素を3つのコレクションに分割する") {
192192
assert(
193-
List((1, "one", "hoge"), (2, "two", "foo"), (3, "three", "bar")).unzip3 == (List(1, 2, 3), List(
194-
"one",
195-
"two",
196-
"three"
197-
), List("hoge", "foo", "bar"))
193+
List((1, "one", "hoge"), (2, "two", "foo"), (3, "three", "bar")).unzip3 == (
194+
List(1, 2, 3),
195+
List(
196+
"one",
197+
"two",
198+
"three"
199+
),
200+
List("hoge", "foo", "bar")
201+
)
198202
)
199203
}
200204

legacy/src/test/scala/org/nomadblacky/scala/samples/functional/programming/in/scala/chapter06/Chapter06Spec.scala

+18-9
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,12 @@ class Chapter06Spec extends FunSpec with Matchers {
5050

5151
intDouble(SimpleRNG(10)) shouldBe ((3847489, 0.6213264381513), SimpleRNG(87443922374356L))
5252
doubleInt(SimpleRNG(10)) shouldBe ((0.0017916266806423664, 1334288366), SimpleRNG(87443922374356L))
53-
double3(SimpleRNG(10)) shouldBe ((0.0017916266806423664, 0.6213264381513, 0.6923740776255727), SimpleRNG(
54-
97442988689487L
55-
))
53+
double3(SimpleRNG(10)) shouldBe (
54+
(0.0017916266806423664, 0.6213264381513, 0.6923740776255727),
55+
SimpleRNG(
56+
97442988689487L
57+
)
58+
)
5659
}
5760

5861
it("[EXERCISE 6.4] ランダムな整数のリストを作成する関数") {
@@ -177,9 +180,12 @@ class Chapter06Spec extends FunSpec with Matchers {
177180
flatMap(ra)(a => map(rb)(b => f(a, b)))
178181

179182
map(int)(_.toString)(SimpleRNG(10)) shouldBe ("3847489", SimpleRNG(252149039181L))
180-
map2(int, double)((i, d) => s"$i:$d")(SimpleRNG(10)) shouldBe ("3847489:0.6213264381513", SimpleRNG(
181-
87443922374356L
182-
))
183+
map2(int, double)((i, d) => s"$i:$d")(SimpleRNG(10)) shouldBe (
184+
"3847489:0.6213264381513",
185+
SimpleRNG(
186+
87443922374356L
187+
)
188+
)
183189
}
184190

185191
describe("6.5 状態アクションデータ型の一般化") {
@@ -233,9 +239,12 @@ class Chapter06Spec extends FunSpec with Matchers {
233239

234240
val rand: Rand[Int] = State(int)
235241
rand.map(i => i.toString).run(SimpleRNG(10)) shouldBe ("3847489", SimpleRNG(252149039181L))
236-
rand.map2(State(double))((i, d) => s"$i:$d").run(SimpleRNG(10)) shouldBe ("3847489:0.6213264381513", SimpleRNG(
237-
87443922374356L
238-
))
242+
rand.map2(State(double))((i, d) => s"$i:$d").run(SimpleRNG(10)) shouldBe (
243+
"3847489:0.6213264381513",
244+
SimpleRNG(
245+
87443922374356L
246+
)
247+
)
239248
rand.flatMap(i => State.unit(i.toString)).run(SimpleRNG(10)) shouldBe ("3847489", SimpleRNG(252149039181L))
240249
}
241250
}

0 commit comments

Comments
 (0)