Skip to content

Commit d761fd3

Browse files
author
Alex Ames
committed
Another doctest attempt
1 parent 6ccc2aa commit d761fd3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/PyThermo.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ end
4040

4141
abstract type Chemical end
4242

43-
const _DOC_PRECISION_FIX = r"(\d\.\d\d)\d*" => s"\1"
43+
const _DOCTEST = """jldoctest pythermo; setup = :(using PyThermo), filter = r"(\\d\\.\\d\\d)\\d*" => s"\\1" """
4444

4545
"""
4646
Species(ID::String; T=298.15, P=101325)
@@ -66,7 +66,7 @@ P : pressure of the chemical (default 101325 Pa)
6666
6767
Examples
6868
--------
69-
```jldoctest pythermo; setup = :(using PyThermo), filter = $_DOC_PRECISION_FIX
69+
```$_DOCTEST
7070
julia> He = Species("He")
7171
Species(He, 298.1 K, 1.013e+05 Pa)
7272
@@ -132,7 +132,7 @@ The composition can also be specified by providing a vector of `"ID" => molefrac
132132
133133
Examples
134134
--------
135-
```jldoctest; setup = :(using PyThermo), filter = $_DOC_PRECISION_FIX;
135+
```$_DOCTEST
136136
julia> air = Mixture(["N2" => 0.78, "O2" => 0.21, "Ar" => 0.01])
137137
Mixture(78% N2, 21% O2, 1% Ar, 298.1 K, 1.013e+05 Pa)
138138

0 commit comments

Comments
 (0)