2020-06-12 17:29:35 -04:00
|
|
|
alias Omnibot.Util
|
|
|
|
|
|
|
|
|
|
defmodule Omnibot.UtilTest do
|
2020-07-01 12:04:51 -07:00
|
|
|
use ExUnit.Case, async: true
|
2020-06-12 17:29:35 -04:00
|
|
|
|
|
|
|
|
test "string_empty?" do
|
|
|
|
|
assert Util.string_empty?("")
|
|
|
|
|
assert !Util.string_empty?("asdf")
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
test "string_or_nil" do
|
|
|
|
|
assert Util.string_or_nil("") == nil
|
|
|
|
|
assert Util.string_or_nil("asdf") == "asdf"
|
|
|
|
|
end
|
|
|
|
|
end
|