Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 3 additions & 11 deletions haskell/Tests/RoundTrip.hs
Original file line number Diff line number Diff line change
Expand Up @@ -247,17 +247,9 @@ testErlangRelations = test [

testRayleighRelations :: Test
testRayleighRelations = test [
"t_exponential_to_rayleigh" ~: testConcreteFiles "tests/RoundTrip2/t_exponential_to_rayleigh.0.hk" "tests/RoundTrip2/t_exponential_to_rayleigh.expected.hk"
]

testRayleighRelations :: Test
testRayleighRelations = test [
"t_gamma_to_rayleigh" ~: testConcreteFiles "tests/RoundTrip2/t_gamma_to_rayleigh.0.hk" "tests/RoundTrip2/t_gamma_to_rayleigh.expected.hk"
]

testRayleighRelations :: Test
testRayleighRelations = test [
"t_weibull_to_rayleigh" ~: testConcreteFiles "tests/RoundTrip2/t_weibull_to_rayleigh.0.hk" "tests/RoundTrip2/t_weibull_to_rayleigh.expected.hk"
"t_exponential_to_rayleigh" ~: testConcreteFiles "tests/RoundTrip/t_exponential_to_rayleigh.0.hk" "tests/RoundTrip/t_exponential_to_rayleigh.expected.hk",
"t_rayleigh_to_gamma" ~: testConcreteFiles "tests/RoundTrip/t_rayleigh_to_gamma.0.hk" "tests/RoundTrip/t_rayleigh_to_gamma.expected.hk",
"t_weibull_to_rayleigh" ~: testConcreteFiles "tests/RoundTrip/t_weibull_to_rayleigh.0.hk" "tests/RoundTrip/t_weibull_to_rayleigh.expected.hk"
]

testOther :: Test
Expand Down
5 changes: 5 additions & 0 deletions tests/RoundTrip/t_exponential_to_rayleigh.0.hk
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
def exponential(alpha prob):
gamma(1/1,alpha)

X <~ exponential(1)
return sqrt(X)
3 changes: 3 additions & 0 deletions tests/RoundTrip/t_exponential_to_rayleigh.expected.hk
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#rayleigh(1)
X3 <~ uniform(+0/1, +1/1)
return sqrt(real2prob(log(real2prob(X3)) * (-1/1)))
1 change: 1 addition & 0 deletions tests/RoundTrip/t_rayleigh_to_gamma.expected.hk
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
gamma(1/1,2/1)
3 changes: 3 additions & 0 deletions tests/RoundTrip/t_weibull_to_rayleigh.expected.hk
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#rayleigh(1)
X <~ uniform(+0/1, +1/1)
return sqrt(real2prob(log(real2prob(X)) * (-1/1)))
6 changes: 0 additions & 6 deletions tests/RoundTrip2/t_exponential_to_rayleigh.0.hk

This file was deleted.

9 changes: 0 additions & 9 deletions tests/RoundTrip2/t_exponential_to_rayleigh.expected.hk

This file was deleted.

1 change: 0 additions & 1 deletion tests/RoundTrip2/t_gamma_to_rayleigh.0.hk

This file was deleted.

9 changes: 0 additions & 9 deletions tests/RoundTrip2/t_weibull_to_rayleigh.expected.hk

This file was deleted.