Skip to content

Commit

Permalink
Test invalid state
Browse files Browse the repository at this point in the history
  • Loading branch information
rockerBOO committed Aug 15, 2024
1 parent 3eae8bb commit 3c1883e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/gleam/otp/port_test.gleam
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,8 @@ pub fn port_dynamic_test() {
msg
|> dynamic.decode1(Port, port.port_from_dynamic)
|> should.be_ok()

dynamic.from("")
|> dynamic.decode1(Port, port.port_from_dynamic)
|> should.be_error()
}

0 comments on commit 3c1883e

Please sign in to comment.