Files
omnibot/test/util_test.exs
Alek Ratzloff 67ba7a5847 WIP: Wordbot
Wordbot is a little more complex of a bot module and I've been working
on it here.

Other than wordbot module, a few minor tweaks have been added all around
that don't really affect anything.

Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
2020-07-01 12:04:51 -07:00

16 lines
313 B
Elixir

alias Omnibot.Util
defmodule Omnibot.UtilTest do
use ExUnit.Case, async: true
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