Initial commit with IRC and bot example.

Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
This commit is contained in:
2020-06-12 17:29:35 -04:00
commit 6340936895
20 changed files with 793 additions and 0 deletions

15
test/util_test.exs Normal file
View File

@@ -0,0 +1,15 @@
alias Omnibot.Util
defmodule Omnibot.UtilTest do
use ExUnit.Case
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