Test case for Bytes.concat/split

This commit is contained in:
Ulf Norell 2019-09-09 16:01:51 +02:00
parent 3ea8470dc8
commit cc531f9957
2 changed files with 5 additions and 0 deletions

View File

@ -143,6 +143,7 @@ compilable_contracts() ->
"address_chain", "address_chain",
"namespace_bug", "namespace_bug",
"bytes_to_x", "bytes_to_x",
"bytes_concat",
"aens", "aens",
"tuple_match", "tuple_match",
"cyclic_include", "cyclic_include",

View File

@ -0,0 +1,4 @@
contract BytesConcat =
entrypoint rot(a : bytes(3)) =
switch (Bytes.split(a))
(b, c) => Bytes.concat(c : bytes(2), b)