Skip to content

Commit 14b75e3

Browse files
authored
Merge pull request #6 from TuringLang/mt/truncated_fix
Test Truncated
2 parents 8affa46 + 18a1530 commit 14b75e3

File tree

2 files changed

+22
-18
lines changed

2 files changed

+22
-18
lines changed

Manifest.toml

Lines changed: 21 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ uuid = "9e28174c-4ba2-5203-b857-d8d62c4213ee"
2828
version = "0.8.10"
2929

3030
[[BinaryProvider]]
31-
deps = ["Libdl", "Logging", "SHA"]
32-
git-tree-sha1 = "c7361ce8a2129f20b0e05a89f7070820cfed6648"
31+
deps = ["Libdl", "SHA"]
32+
git-tree-sha1 = "29995a7b317bbd06be147e1974a3541ce2502dca"
3333
uuid = "b99e7846-7c00-51b0-8f62-c81ae34c0232"
34-
version = "0.5.6"
34+
version = "0.5.7"
3535

3636
[[CSTParser]]
3737
deps = ["Tokenize"]
@@ -53,9 +53,9 @@ version = "0.2.0"
5353

5454
[[Compat]]
5555
deps = ["Base64", "Dates", "DelimitedFiles", "Distributed", "InteractiveUtils", "LibGit2", "Libdl", "LinearAlgebra", "Markdown", "Mmap", "Pkg", "Printf", "REPL", "Random", "Serialization", "SharedArrays", "Sockets", "SparseArrays", "Statistics", "Test", "UUIDs", "Unicode"]
56-
git-tree-sha1 = "84aa74986c5b9b898b0d1acaf3258741ee64754f"
56+
git-tree-sha1 = "ed2c4abadf84c53d9e58510b5fc48912c2336fbb"
5757
uuid = "34da2185-b29b-5c13-b0c7-acf172513d20"
58-
version = "2.1.0"
58+
version = "2.2.0"
5959

6060
[[Conda]]
6161
deps = ["JSON", "VersionParsing"]
@@ -76,9 +76,9 @@ version = "1.1.0"
7676

7777
[[DataStructures]]
7878
deps = ["InteractiveUtils", "OrderedCollections"]
79-
git-tree-sha1 = "517ce30aa57cdfae1ab444a7c0aef8bb86345bc2"
79+
git-tree-sha1 = "1fe8fad5fc84686dcbc674aa255bc867a64f8132"
8080
uuid = "864edb3b-99cc-5e75-8d2d-829cb0a9cfe8"
81-
version = "0.17.1"
81+
version = "0.17.5"
8282

8383
[[Dates]]
8484
deps = ["Printf"]
@@ -106,9 +106,9 @@ uuid = "8ba89e20-285c-5b6f-9357-94700520ee1b"
106106

107107
[[Distributions]]
108108
deps = ["LinearAlgebra", "PDMats", "Printf", "QuadGK", "Random", "SpecialFunctions", "Statistics", "StatsBase", "StatsFuns"]
109-
git-tree-sha1 = "b419fcf95ef9c8cf4d6610cd323890ad66d64240"
109+
git-tree-sha1 = "058e5e39ceee0f92ccec70c5bf31c90ffb374669"
110110
uuid = "31c24e10-a181-5473-b8eb-7969acd0382f"
111-
version = "0.21.3"
111+
version = "0.21.5"
112112

113113
[[FFTW]]
114114
deps = ["AbstractFFTs", "BinaryProvider", "Conda", "Libdl", "LinearAlgebra", "Reexport", "Test"]
@@ -118,9 +118,9 @@ version = "1.0.1"
118118

119119
[[FillArrays]]
120120
deps = ["LinearAlgebra", "Random", "SparseArrays"]
121-
git-tree-sha1 = "16974065d5bfa867446d3228bc63f05a440e910b"
121+
git-tree-sha1 = "6827a8f73ff12707f209c920d204238a16892b55"
122122
uuid = "1a297f60-69ca-5386-bcde-b61e274b549b"
123-
version = "0.7.2"
123+
version = "0.8.0"
124124

125125
[[FiniteDifferences]]
126126
deps = ["LinearAlgebra", "Printf"]
@@ -217,10 +217,10 @@ deps = ["Dates", "LibGit2", "Markdown", "Printf", "REPL", "Random", "SHA", "UUID
217217
uuid = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f"
218218

219219
[[Polynomials]]
220-
deps = ["LinearAlgebra", "SparseArrays", "Test"]
221-
git-tree-sha1 = "62142bd65d3f8aeb2226ec64dd8493349147df94"
220+
deps = ["LinearAlgebra", "RecipesBase"]
221+
git-tree-sha1 = "f7c0c07e82798aef542d60a6e6e85e39f4590750"
222222
uuid = "f27b6e38-b328-58d1-80ce-0feddd5e7a45"
223-
version = "0.5.2"
223+
version = "0.5.3"
224224

225225
[[Printf]]
226226
deps = ["Unicode"]
@@ -240,6 +240,11 @@ uuid = "3fa0cd96-eef1-5676-8a61-b3b8758bbffb"
240240
deps = ["Serialization"]
241241
uuid = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
242242

243+
[[RecipesBase]]
244+
git-tree-sha1 = "7bdce29bc9b2f5660a6e5e64d64d91ec941f6aa2"
245+
uuid = "3cdcf5f2-1ef4-517c-9805-6587b60abb01"
246+
version = "0.7.0"
247+
243248
[[Reexport]]
244249
deps = ["Pkg"]
245250
git-tree-sha1 = "7b1d07f411bc8ddb7977ec7f377b97b158514fe0"
@@ -289,9 +294,9 @@ version = "0.7.2"
289294

290295
[[StaticArrays]]
291296
deps = ["LinearAlgebra", "Random", "Statistics"]
292-
git-tree-sha1 = "db23bbf50064c582b6f2b9b043c8e7e98ea8c0c6"
297+
git-tree-sha1 = "1085ffbf5fd48fdba64ef8e902ca429c4e1212d3"
293298
uuid = "90137ffa-7385-5640-81b9-e52037218182"
294-
version = "0.11.0"
299+
version = "0.11.1"
295300

296301
[[Statistics]]
297302
deps = ["LinearAlgebra", "SparseArrays"]

test/runtests.jl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ separator()
134134
DistSpec(:TriangularDist, (1, 2), 1.5),
135135
DistSpec(:TriangularDist, (1, 3, 2), 1.5),
136136
DistSpec(:Triweight, (1, 1), 1),
137+
DistSpec(:((mu, sigma, l, u) -> Truncated(Normal(mu, sigma), l, u)), (0.0, 1.0, 1.0, 2.0), 1.5),
137138
DistSpec(:Uniform, (), 0.5),
138139
DistSpec(:Uniform, (0, 1), 0.5),
139140
DistSpec(:VonMises, (), 1),
@@ -152,8 +153,6 @@ separator()
152153
DistSpec(:NoncentralChisq, (1.0, 2.0), 0.5),
153154
DistSpec(:NoncentralF, (1, 2, 1), 0.5),
154155
DistSpec(:NoncentralT, (1, 2), 0.5),
155-
# Dispatch error caused by lack of type parameters in Distributions.Truncated
156-
DistSpec(:((mu, sigma, l, u) -> Truncated(Normal(mu, sigma), l, u)), (0.0, 1.0, 1.0, 2.0), 1.5),
157156
# Stackoverflow caused by SpecialFunctions.besselix
158157
DistSpec(:VonMises, (1.0,), 1.0),
159158
DistSpec(:VonMises, (1, 1), 1),

0 commit comments

Comments
 (0)