Skip to content

Commit

Permalink
doctests
Browse files Browse the repository at this point in the history
  • Loading branch information
cmichelenstrofer committed Nov 28, 2023
1 parent dccbf7a commit cd4100e
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
10 changes: 5 additions & 5 deletions src/DimensionfulAngles.jl
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ information.
# Examples
```jldoctest; filter = r"(d*).(d{10})d+" => s"\1.\2"
```jldoctest; filter = r"(\\d*).(\\d{1,10})\\d+" => s"\\1.\\2"
julia> using DimensionfulAngles
julia> 1.0ua"turn"
Expand Down Expand Up @@ -79,7 +79,7 @@ Dimension: [`DimensionfulAngles.𝐀`](@ref).
# Examples
```jldoctest; filter = r"(d*).(d{10})d+" => s"\1.\2"
```jldoctest; filter = r"(\\d*).(\\d{1,10})\\d+" => s"\\1.\\2"
julia> using DimensionfulAngles
julia> 1.0ua"rad" + 20.0ua"mrad"
Expand All @@ -103,7 +103,7 @@ Dimension: [`DimensionfulAngles.𝐀`](@ref).
# Examples
```jldoctest; filter = r"(d*).(d{10})d+" => s"\1.\2"
```jldoctest; filter = r"(\\d*).(\\d{1,10})\\d+" => s"\\1.\\2"
julia> using DimensionfulAngles
julia> 1ua"°"
Expand All @@ -128,7 +128,7 @@ See also [`DimensionfulAngles.radᵃ`](@ref).
# Examples
```jldoctest; filter = r"(d*).(d{10})d+" => s"\1.\2"
```jldoctest; filter = r"(\\d*).(\\d{1,10})\\d+" => s"\\1.\\2"
julia> using DimensionfulAngles
julia> θ₀
Expand All @@ -154,7 +154,7 @@ It converts angle units and the following derived units: `sr`, `rpm`, `rps`).
# Example
```jldoctest; filter = r"(d*).(d{10})d+" => s"\1.\2"
```jldoctest; filter = r"(\\d*).(\\d{1,10})\\d+" => s"\\1.\\2"
julia> using Unitful, DimensionfulAngles
julia> ω = 3.2u"radᵃ/s"
Expand Down
2 changes: 1 addition & 1 deletion src/derived.jl
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ according to the relation ``f = ω/2π = 1/T``, where
# Example
```jldoctest; filter = r"(d*).(d{10})d+" => s"\1.\2"
```jldoctest; filter = r"(\\d*).(\\d{1,10})\\d+" => s"\\1.\\2"
julia> using Unitful
julia> using DimensionfulAngles
Expand Down
2 changes: 1 addition & 1 deletion src/uamacro.jl
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Note that what goes inside must be parsable as a valid Julia expression.
# Examples
```jldoctest; filter = r"(d*).(d{10})d+" => s"\1.\2"
```jldoctest; filter = r"(\\d*).(\\d{1,10})\\d+" => s"\\1.\\2"
julia> using DimensionfulAngles
julia> 1.0ua"turn"
Expand Down
4 changes: 2 additions & 2 deletions src/units.jl
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ either degree (`°ᵃ`) or hour angle (`ʰᵃ`).
# Example
```jldoctest; filter = r"(d*).(d{10})d+" => s"\1.\2"
```jldoctest; filter = r"(\\d*).(\\d{1,10})\\d+" => s"\\1.\\2"
julia> using DimensionfulAngles
julia> sexagesimal(20.2ua"°")
Expand Down Expand Up @@ -156,7 +156,7 @@ For degrees it is printed as `u° m′ s″` and for hour angle as `uʰ mᵐ sˢ
# Example
```jldoctest; filter = r"(d*).(d{10})d+" => s"\1.\2"
```jldoctest; filter = r"(\\d*).(\\d{1,10})\\d+" => s"\\1.\\2"
julia> using DimensionfulAngles
julia> show_sexagesimal(20.2ua"°")
Expand Down

0 comments on commit cd4100e

Please sign in to comment.