From 9ee0367cd88dbc6d946163a817676d65172bd73c Mon Sep 17 00:00:00 2001 From: SisMaker <1713699517@qq.com> Date: Fri, 16 Apr 2021 10:16:00 +0800 Subject: [PATCH] =?UTF-8?q?ft:=20=E6=B5=8B=E8=AF=95=E7=94=A8=E4=BE=8B?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/testCase/utTestBinAddr.erl | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 src/testCase/utTestBinAddr.erl diff --git a/src/testCase/utTestBinAddr.erl b/src/testCase/utTestBinAddr.erl new file mode 100644 index 0000000..b3d87c7 --- /dev/null +++ b/src/testCase/utTestBinAddr.erl @@ -0,0 +1,33 @@ +-module(utTestBinAddr). + +-compile([export_all, nowarn_unused_function, nowarn_unused_vars, nowarn_export_all]). + +getBin11() -> + <<"fdsafsdf范德萨发送发送"/utf8>>. + +getBin12() -> + <<"fdsafsdf范德萨发送发送"/utf8>>. + +getBin21() -> + <<"fdsafsdfsdfdsfasfdsffffffffffffffffffffffffffffffffffffffffffffffffffffHJlhdsjflshdalfkhsaklfhsdafjkdshfkla范德萨发送发送"/utf8>>. + +getBin22() -> + <<"fdsafsdfsdfdsfasfdsffffffffffffffffffffffffffffffffffffffffffffffffffffHJlhdsjflshdalfkhsaklfhsdafjkdshfkla范德萨发送发送"/utf8>>. + +test() -> + A = <<"fdsafsdf范德萨发送发送"/utf8>>, + B = <<"fdsafsdfsdfdsfasfdsffffffffffffffffffffffffffffffffffffffffffffffffffffHJlhdsjflshdalfkhsaklfhsdafjkdshfkla范德萨发送发送"/utf8>>, + io:format("IMY************************~n~p\n~p\n~p\n~p~n~p\n~p\n", + [ + binaryAddr:getBinAddr(getBin11()), + binaryAddr:getBinAddr(getBin12()), + binaryAddr:getBinAddr(getBin21()), + binaryAddr:getBinAddr(getBin22()), + binaryAddr:getBinAddr(A), + binaryAddr:getBinAddr(B) + ]). + + + + +