Skip to content

Commit

Permalink
Add a couple more safety specs
Browse files Browse the repository at this point in the history
  • Loading branch information
dunyakirkali committed Jan 23, 2018
1 parent 8cb3d31 commit 46e1c30
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions spec/center_spec.exs
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ defmodule CenterSpec do
it "center/2" do
expect Tanga.center("two", 5) |> to(eq " two ")
expect Tanga.center("hello", 20) |> to(eq " hello ")
expect Tanga.center("one", "5") |> to(eq " one ")
expect Tanga.center("six", 5.4) |> to(eq " six ")
end

it "center/2,3 with a string longer than or as long as the specified length" do
Expand Down

0 comments on commit 46e1c30

Please sign in to comment.