Skip to content

Commit

Permalink
Core.St test on non-scrict input
Browse files Browse the repository at this point in the history
  • Loading branch information
wkhere committed Aug 15, 2014
1 parent 807e758 commit 95e4174
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/core_state_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -97,4 +97,10 @@ defmodule St.Test do
""" |> no_indent |> no_lf
end

test "use nonstrict state" do
nonstrict_st = %{stack: []}
assert ( nonstrict_st |> push(1) |> release ) == [1]
# a possible hack: use of non-Core.St.t map like above will work,
# but will be detected by the dialyzer when in compiled modules
end
end

0 comments on commit 95e4174

Please sign in to comment.