Skip to content

Commit

Permalink
Fix tests of coordinate functions.
Browse files Browse the repository at this point in the history
  • Loading branch information
michakraus committed Oct 24, 2020
1 parent 4bdb560 commit 8067d54
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions test/test_analytic.jl
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,14 @@ macro test_equilibrium(equilibrium_module, equilibrium_periodicity)
$equilibrium_module.@code

function test_equilibrium(t, ξ)
@test ξ¹(t, ξ...) == ξ¹(t,ξ)
@test ξ²(t, ξ...) == ξ²(t,ξ)
@test ξ³(t, ξ...) == ξ³(t,ξ)

@test (t, ξ...) == (t,ξ)
@test (t, ξ...) == (t,ξ)
@test (t, ξ...) == (t,ξ)

@test X(t, ξ...) == X(t,ξ)
@test Y(t, ξ...) == Y(t,ξ)
@test Z(t, ξ...) == Z(t,ξ)
Expand Down Expand Up @@ -86,13 +94,7 @@ macro test_equilibrium(equilibrium_module, equilibrium_periodicity)
@test dA₃dx₂(t, ξ...) == dA₃dx₂(t,ξ)
@test dA₃dx₃(t, ξ...) == dA₃dx₃(t,ξ)

@test ξ¹(t, ξ...) == ξ¹(t,ξ)
@test ξ²(t, ξ...) == ξ²(t,ξ)
@test ξ³(t, ξ...) == ξ³(t,ξ)

@test ξ¹(t, ξ...) == ξ¹(t,ξ)
@test ξ²(t, ξ...) == ξ²(t,ξ)
@test ξ³(t, ξ...) == ξ³(t,ξ)

@test periodicity(t,ξ...) == $equilibrium_periodicity
@test periodicity(t,ξ) == $equilibrium_periodicity
Expand Down

0 comments on commit 8067d54

Please sign in to comment.