Skip to content

Commit 83c01ee

Browse files
committed
fix doctests
1 parent abc55f1 commit 83c01ee

File tree

2 files changed

+8
-10
lines changed

2 files changed

+8
-10
lines changed

docs/src/api.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,3 @@
44
Modules = [ChainRulesTestUtils]
55
Private = false
66
```
7-
8-
9-
## Global Configuration
10-
```@docs
11-
ChainRulesTestUtils.enable_tangent_transform!
12-
```

docs/src/index.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,8 @@ Keep this in mind when testing discontinuous rules for functions like [ReLU](htt
5959
julia> using ChainRulesTestUtils;
6060
6161
julia> test_frule(two2three, 3.33, -7.77);
62-
62+
Test Summary: | Pass Total
63+
test_frule: two2three on Float64,Float64 | 6 6
6364
6465
```
6566

@@ -70,7 +71,8 @@ The call will test the `rrule` for function `f` at the point `x`, and similarly
7071

7172
```jldoctest ex
7273
julia> test_rrule(two2three, 3.33, -7.77);
73-
74+
Test Summary: | Pass Total
75+
test_rrule: two2three on Float64,Float64 | 9 9
7476
7577
```
7678

@@ -97,11 +99,13 @@ with the `frule` and `rrule` defined with the help of `@scalar_rule` macro
9799
call.
98100
```jldoctest ex
99101
julia> test_scalar(relu, 0.5);
100-
102+
Test Summary: | Pass Total
103+
test_scalar: relu at 0.5 | 11 11
101104
102105
103106
julia> test_scalar(relu, -0.5);
104-
107+
Test Summary: | Pass Total
108+
test_scalar: relu at -0.5 | 11 11
105109
106110
```
107111

0 commit comments

Comments
 (0)