diff --git a/tests/test2_fromSnakeCase.nim b/tests/test.nim similarity index 57% rename from tests/test2_fromSnakeCase.nim rename to tests/test.nim index 4203533..f91b2be 100644 --- a/tests/test2_fromSnakeCase.nim +++ b/tests/test.nim @@ -1,13 +1,15 @@ -# This is just an example to get you started. You may wish to put all of your -# tests into a single file, or separate them into multiple `test1`, `test2` -# etc. files (better names are recommended, just make sure the name starts with -# the letter 't'). -# -# To run these tests, simply execute `nimble test`. +# To run these tests, simply execute `nimble test`. import unittest import snake_case +test "toSnakeCase": + check "toSnakeCase".toSnakeCase() == "TO_SNAKE_CASE" + check "httpServerName".toSnakeCase() == "HTTP_SERVER_NAME" + check "portNum".toSnakeCase() == "PORT_NUM" + check "firstNameOnly".toSnakeCase() == "FIRST_NAME_ONLY" + check "rostr.token".toSnakeCase() == "ROSTR_TOKEN" + test "fromSnakeCase": check "TO_SNAKE_CASE".fromSnakeCase() == "toSnakeCase" check "HTTP_SERVER_NAME".fromSnakeCase() == "httpServerName" diff --git a/tests/test1_toSnakeCase.nim b/tests/test1_toSnakeCase.nim deleted file mode 100644 index 6f3b1ce..0000000 --- a/tests/test1_toSnakeCase.nim +++ /dev/null @@ -1,17 +0,0 @@ -# This is just an example to get you started. You may wish to put all of your -# tests into a single file, or separate them into multiple `test1`, `test2` -# etc. files (better names are recommended, just make sure the name starts with -# the letter 't'). -# -# To run these tests, simply execute `nimble test`. - -import unittest -import snake_case - -test "toSnakeCase": - check "toSnakeCase".toSnakeCase() == "TO_SNAKE_CASE" - check "httpServerName".toSnakeCase() == "HTTP_SERVER_NAME" - check "portNum".toSnakeCase() == "PORT_NUM" - check "firstNameOnly".toSnakeCase() == "FIRST_NAME_ONLY" - check "rostr.token".toSnakeCase() == "ROSTR_TOKEN" -