replace unicode arrows
* ⇒, →, ← * because we don't want to show them in documentation snippets and then it's complicated to avoid that when snippets are located in src/test/scala in individual modules * dont replace object `→` in FSM.scala and PersistentFSM.scala
This commit is contained in:
parent
e4d38f92a4
commit
5c96a5f556
1521 changed files with 18846 additions and 18786 deletions
|
|
@ -18,20 +18,20 @@ class ORMultiMapSpec extends WordSpec with Matchers {
|
|||
|
||||
"be able to add entries" in {
|
||||
val m = ORMultiMap().addBinding(node1, "a", "A").addBinding(node1, "b", "B")
|
||||
m.entries should be(Map("a" → Set("A"), "b" → Set("B")))
|
||||
m.entries should be(Map("a" -> Set("A"), "b" -> Set("B")))
|
||||
|
||||
val m2 = m.addBinding(node1, "a", "C")
|
||||
m2.entries should be(Map("a" → Set("A", "C"), "b" → Set("B")))
|
||||
m2.entries should be(Map("a" -> Set("A", "C"), "b" -> Set("B")))
|
||||
}
|
||||
|
||||
"be able to remove entry" in {
|
||||
val m = ORMultiMap().addBinding(node1, "a", "A").addBinding(node1, "b", "B").removeBinding(node1, "a", "A")
|
||||
m.entries should be(Map("b" → Set("B")))
|
||||
m.entries should be(Map("b" -> Set("B")))
|
||||
}
|
||||
|
||||
"be able to replace an entry" in {
|
||||
val m = ORMultiMap().addBinding(node1, "a", "A").replaceBinding(node1, "a", "A", "B")
|
||||
m.entries should be(Map("a" → Set("B")))
|
||||
m.entries should be(Map("a" -> Set("B")))
|
||||
}
|
||||
|
||||
"not handle concurrent updates to the same set" in {
|
||||
|
|
@ -61,9 +61,9 @@ class ORMultiMapSpec extends WordSpec with Matchers {
|
|||
// merge both ways
|
||||
|
||||
val expectedMerge = Map(
|
||||
"a" → Set("A"),
|
||||
"b" → Set("B"),
|
||||
"c" → Set("C"))
|
||||
"a" -> Set("A"),
|
||||
"b" -> Set("B"),
|
||||
"c" -> Set("C"))
|
||||
|
||||
val merged1 = m1 merge m2
|
||||
merged1.entries should be(expectedMerge)
|
||||
|
|
@ -88,10 +88,10 @@ class ORMultiMapSpec extends WordSpec with Matchers {
|
|||
// merge both ways
|
||||
|
||||
val expectedMerged = Map(
|
||||
"a" → Set("A2"),
|
||||
"b" → Set("B1"),
|
||||
"c" → Set("C2"),
|
||||
"d" → Set("D1", "D2"))
|
||||
"a" -> Set("A2"),
|
||||
"b" -> Set("B1"),
|
||||
"c" -> Set("C2"),
|
||||
"d" -> Set("D1", "D2"))
|
||||
|
||||
val merged1 = m1 merge m2
|
||||
merged1.entries should be(expectedMerged)
|
||||
|
|
@ -117,7 +117,7 @@ class ORMultiMapSpec extends WordSpec with Matchers {
|
|||
// merge both ways
|
||||
|
||||
val expectedMerged = Map(
|
||||
"b" → Set("B1"))
|
||||
"b" -> Set("B1"))
|
||||
|
||||
val merged1 = m1 merge m2
|
||||
merged1.entries should be(expectedMerged)
|
||||
|
|
@ -157,8 +157,8 @@ class ORMultiMapSpec extends WordSpec with Matchers {
|
|||
val m2 = m.put(node1, "a", a - "A1")
|
||||
|
||||
val expectedMerged = Map(
|
||||
"a" → Set("A2"),
|
||||
"b" → Set("B1"))
|
||||
"a" -> Set("A2"),
|
||||
"b" -> Set("B1"))
|
||||
|
||||
m2.entries should be(expectedMerged)
|
||||
}
|
||||
|
|
@ -172,7 +172,7 @@ class ORMultiMapSpec extends WordSpec with Matchers {
|
|||
"remove all bindings for a given key" in {
|
||||
val m = ORMultiMap().addBinding(node1, "a", "A1").addBinding(node1, "a", "A2").addBinding(node1, "b", "B1")
|
||||
val m2 = m.remove(node1, "a")
|
||||
m2.entries should be(Map("b" → Set("B1")))
|
||||
m2.entries should be(Map("b" -> Set("B1")))
|
||||
}
|
||||
|
||||
"not have usual anomalies for remove+addBinding scenario and delta-deltas" in {
|
||||
|
|
@ -550,10 +550,10 @@ class ORMultiMapSpec extends WordSpec with Matchers {
|
|||
val ORMultiMap(entries1) = m1
|
||||
val entries2: Map[String, Set[Long]] = entries1
|
||||
Changed(ORMultiMapKey[String, Long]("key"))(m1) match {
|
||||
case c @ Changed(ORMultiMapKey("key")) ⇒
|
||||
case c @ Changed(ORMultiMapKey("key")) =>
|
||||
val ORMultiMap(entries3) = c.dataValue
|
||||
val entries4: Map[String, Set[Long]] = entries3
|
||||
entries4 should be(Map("a" → Set(1L, 2L), "b" → Set(3L)))
|
||||
entries4 should be(Map("a" -> Set(1L, 2L), "b" -> Set(3L)))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue