Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .git-blame-ignore-revs
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,6 @@

# Scala Steward: Reformat with scalafmt 3.9.7
33326ceb21fb479ef37f76e8beef6c6b1e449a57

# Scala Steward: Reformat with scalafmt 3.10.2
e85201b040700f8ac68b991f82d1c43bb95025fc
2 changes: 1 addition & 1 deletion .scalafmt.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version = 3.10.1
version = 3.10.2

align.preset = most
literals.double = Upper
Expand Down
14 changes: 7 additions & 7 deletions src/test/scala/nl/gn0s1s/between/AxiomSpec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ object AxiomSpec extends Properties("Axiom") {
Interval[Instant](p, q).get, // i
Interval[Instant](q, r).get, // j
Interval[Instant](q, s).get, // k
Interval[Instant](t, q).get // l
Interval[Instant](t, q).get // l
)

property("M1: if two periods both meet a third, then any period met by one must also be met by the other.") =
Expand All @@ -40,7 +40,7 @@ object AxiomSpec extends Properties("Axiom") {
Interval[Instant](p, q).get, // i
Interval[Instant](q, r).get, // j
Interval[Instant](s, t).get, // k
Interval[Instant](t, u).get // l
Interval[Instant](t, u).get // l
)

property(
Expand Down Expand Up @@ -71,7 +71,7 @@ object AxiomSpec extends Properties("Axiom") {
r <- Gen.choose(q, Instant.MAX) if q < r
} yield (
Interval[Instant](p, q).get, // i
Interval[Instant](q, r).get // j
Interval[Instant](q, r).get // j
)

property("ML2: if i meets j then j does not meet i") = forAll(genML2) { case (i, j) =>
Expand All @@ -85,7 +85,7 @@ object AxiomSpec extends Properties("Axiom") {
r <- Gen.choose(q, Instant.MAX) if q < r
} yield (
Interval[Instant](p, q).get, // i
Interval[Instant](q, r).get // m
Interval[Instant](q, r).get // m
)

property("ML3: there is no period m such that i:m:i,") = forAll(genML3) { case (i, m) =>
Expand All @@ -101,7 +101,7 @@ object AxiomSpec extends Properties("Axiom") {
} yield (
Interval[Instant](p, q).get, // i
r, // startOfJ
s // endOfK
s // endOfK
)

property("M3: time does not start or stop") = forAll(genM3) { case (i, startOfJ, endOfK) =>
Expand All @@ -121,7 +121,7 @@ object AxiomSpec extends Properties("Axiom") {
Interval[Instant](p, q).get, // i
Interval[Instant](q, r).get, // j
s, // startOfM
t // endOfN
t // endOfN
)

property("M4: if two meets are separated by intervals, then this sequence is a longer interval") = forAll(genM4) {
Expand All @@ -143,7 +143,7 @@ object AxiomSpec extends Properties("Axiom") {
Interval[Instant](p, q).get, // i
Interval[Instant](q, r).get, // j
Interval[Instant](r, s).get, // l
Interval[Instant](q, s).get // k
Interval[Instant](q, s).get // k
)

property("M5: There is only one time period between any two meeting-places.") = forAll(genM5) { case (i, j, l, k) =>
Expand Down