@@ -194,16 +194,16 @@ main = hspec $ do
194194 let ctx1 = context d1
195195 ctxSync = context (sync d1 d2)
196196 in all
197- (\ (k, v) -> Map. lookup k (vvMap ctxSync) >= Just v)
198- (Map. toList (vvMap ctx1))
197+ (\ (k, v) -> Map. lookup k (getVersionVectorCounts ctxSync) >= Just v)
198+ (Map. toList (getVersionVectorCounts ctx1))
199199
200200 it " event increases context counter for the actor" $
201201 property $ \ (d :: DVV ID Value ) (actor :: ID ) (val :: Value ) ->
202202 let ctx = context d
203203 d' = event d (Just ctx) actor val
204204 ctx' = context d'
205- oldCount = Map. findWithDefault 0 actor (vvMap ctx)
206- newCount = Map. findWithDefault 0 actor (vvMap ctx')
205+ oldCount = Map. findWithDefault 0 actor (getVersionVectorCounts ctx)
206+ newCount = Map. findWithDefault 0 actor (getVersionVectorCounts ctx')
207207 in newCount `shouldBe` (oldCount + 1 )
208208
209209 it " event with full context produces exactly one value" $
@@ -236,9 +236,9 @@ main = hspec $ do
236236 property $ \ (d :: DVV ID Value ) ->
237237 case d of
238238 EmptyDVV -> True
239- SingletonDVV actor _ -> Map. member actor (vvMap (context d))
239+ SingletonDVV actor _ -> Map. member actor (getVersionVectorCounts (context d))
240240 DVV _ vals ->
241- let ctx = vvMap (context d)
241+ let ctx = getVersionVectorCounts (context d)
242242 actors = [actor | Dot actor _ <- Map. keys vals]
243243 in all (`Map.member` ctx) actors
244244
0 commit comments