Skip to content
This repository was archived by the owner on Jun 10, 2024. It is now read-only.

encode_unsigned_1 #676

Open
wants to merge 17 commits into
base: develop
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
migrate more integration tests
mlwilkerson committed Nov 2, 2020
commit 112820f08118a0d357b3a6afd774762498307eb4
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
test_stdout!(doctest, "<<169,138,199>>\n");
test_stdout!(with_smallest_big_int, "<<64,0,0,0,0,0>>\n");
test_stdout!(with_non_integer, "{caught, error, badarg}\n{caught, error, badarg}\n{caught, error, badarg}\n");
test_stdout!(with_negative_integer, "{caught, error, badarg}\n{caught, error, badarg}\n");
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
-module(init).
-export([start/0]).
-import(erlang, [display/1]).

start() ->
test:caught(fun () ->
display(binary:encode_unsigned(-1))
end),
test:caught(fun () ->
display(binary:encode_unsigned(-70368744177664))
end).
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
-module(init).
-export([start/0]).
-import(erlang, [display/1]).

start() ->
test:caught(fun () ->
display(binary:encode_unsigned(nil))
end),
test:caught(fun () ->
display(binary:encode_unsigned(foo))
end),
test:caught(fun () ->
display(binary:encode_unsigned("foo"))
end).