forked from erlware/erlware_commons
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Moved
ec_talk
tests into separate file
Part of erlware#179. Signed-off-by: Ariel Otilibili <[email protected]>
- Loading branch information
Ariel Otilibili
committed
Sep 22, 2024
1 parent
6d4e7d1
commit bbbbb3b
Showing
2 changed files
with
22 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
%%% @copyright 2024 Erlware, LLC. | ||
-module(ec_talk_tests). | ||
|
||
-include_lib("eunit/include/eunit.hrl"). | ||
|
||
general_test_() -> | ||
[?_test(42 == ec_talk:get_integer("42")), | ||
?_test(500_211 == ec_talk:get_integer("500211")), | ||
?_test(1_234_567_890 == ec_talk:get_integer("1234567890")), | ||
?_test(12_345_678_901_234_567_890 == ec_talk:get_integer("12345678901234567890")), | ||
?_test(true == ec_talk:get_boolean("true")), | ||
?_test(false == ec_talk:get_boolean("false")), | ||
?_test(true == ec_talk:get_boolean("Ok")), | ||
?_test(true == ec_talk:get_boolean("ok")), | ||
?_test(true == ec_talk:get_boolean("Y")), | ||
?_test(true == ec_talk:get_boolean("y")), | ||
?_test(false == ec_talk:get_boolean("False")), | ||
?_test(false == ec_talk:get_boolean("No")), | ||
?_test(false == ec_talk:get_boolean("no"))]. |