Skip to content

Commit

Permalink
revert test
Browse files Browse the repository at this point in the history
  • Loading branch information
darky committed Jun 5, 2024
1 parent 600657b commit 70533e6
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions test/act_test.gleam
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@

import gleam/int
import gleam/io
import gleeunit
import gleeunit/should

// The `Action` type and `do` function are imported unqualified since they are
// so common.
Expand Down Expand Up @@ -48,11 +46,4 @@ pub fn main() {

io.println("The result is " <> int.to_string(result))
io.println("The state is " <> int.to_string(final_state))

gleeunit.main()
}

pub fn flatten_test() {
act.flatten(fn(ctx) { #(ctx, fn(ctx) { #(ctx, "result") }) })("state")
|> should.equal(#("state", "result"))
}
}

0 comments on commit 70533e6

Please sign in to comment.