Idris2Doc : Control.App.Spec

Control.App.Spec

(source)

Definitions

interfaceSpec : ListError->Type
  ```
spec : Spec Init => App Init ()
spec = describe "example" $ do
context "arith" $ do
it "1+1 = 2" $ do
1+1 `shouldBe` 2
it "1*1 = 1" $ do
1*1 `shouldBe` 1
```

Parameters: e
Constraints: Has (State SpecState SpecState :: Nil) e
Methods:
describe : String->Appe () ->Appe ()
context : String->Appe () ->Appe ()
it : String->App (TestError::e) () ->Appe ()

Implementation: 
Has [StateSpecStateSpecState] e=>Spece
describe : Spece=>String->Appe () ->Appe ()
Visibility: public export
context : Spece=>String->Appe () ->Appe ()
Visibility: public export
it : Spece=>String->App (TestError::e) () ->Appe ()
Visibility: public export
emptyState : SpecState
Visibility: export
specFinalReport : Has [PrimIO, Spec] e=>Appe ()
Visibility: export
shouldBe : HasErrTestErrore=>Has [Show, Eq] x=>x->x->Appe ()
  ```
a `shouldBe` b
```

Visibility: export