aboutsummaryrefslogtreecommitdiffstats
path: root/lib/erl_interface/test
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2018-09-04 14:38:36 +0200
committerSverker Eriksson <[email protected]>2018-09-04 14:38:36 +0200
commit0b2e1c581b260de7c8e6dd70b31a3d0098b2a5b6 (patch)
tree29bd224b2fee6b5d274585c4faf6013cf9d31f9a /lib/erl_interface/test
parentc227e4aa03196dfa8c0228e1d9537299f66ba376 (diff)
parente3e013e4d8287c6dc8ca3992bd4559744e75f8d2 (diff)
downloadotp-0b2e1c581b260de7c8e6dd70b31a3d0098b2a5b6.tar.gz
otp-0b2e1c581b260de7c8e6dd70b31a3d0098b2a5b6.tar.bz2
otp-0b2e1c581b260de7c8e6dd70b31a3d0098b2a5b6.zip
Merge branch 'maint'
Diffstat (limited to 'lib/erl_interface/test')
-rw-r--r--lib/erl_interface/test/erl_ext_SUITE_data/ext_test.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/erl_interface/test/erl_ext_SUITE_data/ext_test.c b/lib/erl_interface/test/erl_ext_SUITE_data/ext_test.c
index 1e986feacf..04e8ca322e 100644
--- a/lib/erl_interface/test/erl_ext_SUITE_data/ext_test.c
+++ b/lib/erl_interface/test/erl_ext_SUITE_data/ext_test.c
@@ -88,6 +88,11 @@ TESTCASE(compare_list) {
// erlang:term_to_binary([0, 1000])
unsigned char term4[] = {131,108,0,0,0,2,97,0,98,0,0,3,232,106};
+ // erlang:term_to_binary([a|b])
+ unsigned char term5a[] = {131,108,0,0,0,1,100,0,1,97,100,0,1,98};
+ // erlang:term_to_binary([a|c])
+ unsigned char term5b[] = {131,108,0,0,0,1,100,0,1,97,100,0,1,99};
+
erl_init(NULL, 0);
start_a = term1;
start_b = term2;
@@ -103,6 +108,13 @@ TESTCASE(compare_list) {
test_compare_ext("lists1", start_a, end_a, start_b, end_b, -1);
+ start_a = term5a;
+ start_b = term5b;
+ end_a = term5a + sizeof(term5a);
+ end_b = term5b + sizeof(term5b);
+
+ test_compare_ext("lists5", start_a, end_a, start_b, end_b, -1);
+
report(1);
}