Skip to content

Commit

Permalink
chore: gleam format
Browse files Browse the repository at this point in the history
  • Loading branch information
erikareads committed Dec 23, 2023
1 parent a7fd9cb commit 00d307c
Showing 1 changed file with 8 additions and 12 deletions.
20 changes: 8 additions & 12 deletions test/prng/random_test.gleam
Original file line number Diff line number Diff line change
Expand Up @@ -181,10 +181,11 @@ pub fn choose_behaves_the_same_as_uniform_test() {
pub fn uniform_behaves_like_weighted_when_all_weights_are_equal_test() {
let gen1 = random.uniform("Luois", ["Glob", "Hayleigh", "Ben"])
let gen2 =
random.weighted(
#(2.2, "Luois"),
[#(2.2, "Glob"), #(2.2, "Hayleigh"), #(2.2, "Ben")],
)
random.weighted(#(2.2, "Luois"), [
#(2.2, "Glob"),
#(2.2, "Hayleigh"),
#(2.2, "Ben"),
])
behaves_the_same(gen1, gen2)
}

Expand Down Expand Up @@ -230,14 +231,9 @@ pub fn map5_maps_the_generated_value_test() {
let [gen1, gen2, gen3, gen4, gen5] =
list.map([1, 2, 3, 4, 5], random.constant)
let examples =
random.map5(
gen1,
gen2,
gen3,
gen4,
gen5,
fn(a, b, c, d, e) { #(a, b, c, d, e) },
)
random.map5(gen1, gen2, gen3, gen4, gen5, fn(a, b, c, d, e) {
#(a, b, c, d, e)
})
test(for_all: examples, that: fn(value) { value == #(1, 2, 3, 4, 5) })
}

Expand Down

0 comments on commit 00d307c

Please sign in to comment.