aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLouis Pilfold <louis@lpil.uk>2022-03-01 13:16:06 +0000
committerLouis Pilfold <louis@lpil.uk>2022-03-01 13:16:06 +0000
commita9a9c27c5f772bd7962952e8324a4cff624239e0 (patch)
tree7a8b984e2c54441243467f49945f0fa77db330ca /src
parent699e81c1475b6815bc1d06a24bebddf7afb0756a (diff)
downloadgleam_stdlib-a9a9c27c5f772bd7962952e8324a4cff624239e0.tar.gz
gleam_stdlib-a9a9c27c5f772bd7962952e8324a4cff624239e0.zip
Move test FFI to test module
Diffstat (limited to 'src')
-rw-r--r--src/gleam_stdlib.erl17
1 files changed, 1 insertions, 16 deletions
diff --git a/src/gleam_stdlib.erl b/src/gleam_stdlib.erl
index e9d6391..cc1475f 100644
--- a/src/gleam_stdlib.erl
+++ b/src/gleam_stdlib.erl
@@ -1,8 +1,6 @@
-module(gleam_stdlib).
--include_lib("eunit/include/eunit.hrl").
--export([should_equal/2, should_not_equal/2, should_be_ok/1, should_be_error/1,
- map_get/2, iodata_append/2, identity/1, decode_int/1, decode_bool/1,
+-export([map_get/2, iodata_append/2, identity/1, decode_int/1, decode_bool/1,
decode_float/1, decode_thunk/1, decode_list/1, decode_option/2,
decode_field/2, parse_int/1, parse_float/1, less_than/2,
string_pop_grapheme/1, string_starts_with/2, wrap_list/1,
@@ -26,19 +24,6 @@
((X) >= $a) andalso ((X) =< $f) -> (X) - $a + 10
end).
-should_equal(Actual, Expected) ->
- ?assertEqual(Expected, Actual),
- nil.
-should_not_equal(Actual, Expected) ->
- ?assertNotEqual(Expected, Actual),
- nil.
-should_be_ok(A) ->
- ?assertMatch({ok, _}, A),
- nil.
-should_be_error(A) ->
- ?assertMatch({error, _}, A),
- nil.
-
map_get(Map, Key) ->
case maps:find(Key, Map) of
error -> {error, nil};