1module Control.AutoUpdateSpec (spec) where
4import Test.Hspec.QuickCheck
6import Control.Concurrent (threadDelay)
7import Control.Monad (replicateM_, forM_)
8import Control.AutoUpdate
12 prop "incrementer" $ \st' -> do
13 let st = abs st' `mod` 10000
15 next <- mkAutoUpdate defaultUpdateSettings
16 { updateAction = atomicModifyIORef ref $ \i ->
17 let i' = succ i in i' `seq` (i', i')
18 , updateSpawnThreshold = st
22 forM_ [1..st + 1] $ \i -> do
31 last1 <- readIORef ref
33 last2 <- readIORef ref
34 last2 `shouldBe` last1
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list