summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2013-09-05 23:16:11 +0200
committerHarald Welte <laforge@gnumonks.org>2013-09-05 23:16:11 +0200
commitfe6ef13a9a90ccb6b6e1a5bbcac451696394ca42 (patch)
tree4436e44c2feddcf4964d99fab312e1e413853841
parent287a3fd644a1a6b51bfebf37b9ccb4180b85ff67 (diff)
fix MTP3 eunit test case DPC/OPC switch
Following-up to 0402b8f1acca19a798d2dfc2a2e32bba2bfd2df9 where OPC/DPC parsing was fixed, we also need to fix our broken teset case...
-rw-r--r--test/mtp3_codec_tests.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/mtp3_codec_tests.erl b/test/mtp3_codec_tests.erl
index 6715e53..de79a32 100644
--- a/test/mtp3_codec_tests.erl
+++ b/test/mtp3_codec_tests.erl
@@ -6,7 +6,7 @@
-include("mtp3.hrl").
-define(MTP3_MSG_BIN, <<131,92,64,0,192,9,0,3,13,24,10,18,7,0,18,4,83,132,9,0,23,11,18,6,0,18,4,68,119,88,16,70,35,67,100,65,73,4,81,1,2,200,107,42,40,40,6,7,0,17,134,5,1,1,1,160,29,97,27,128,2,7,128,161,9,6,7,4,0,0,1,0,1,3,162,3,2,1,0,163,5,161,3,2,1,0,108,13,163,11,2,1,64,2,1,8,48,3,10,1,0>>).
--define(MTP3_MSG_DEC, {mtp3_msg,2,3,{mtp3_routing_label,12,92,1},undefined,<<9,0,3,13,24,10,18,7,0,18,4,83,132,9,0,23,11,18,6,0,18,4,68,119,88,16,70,35,67,100,65,73,4,81,1,2,200,107,42,40,40,6,7,0,17,134,5,1,1,1,160,29,97,27,128,2,7,128,161,9,6,7,4,0,0,1,0,1,3,162,3,2,1,0,163,5,161,3,2,1,0,108,13,163,11,2,1,64,2,1,8,48,3,10,1,0>>}).
+-define(MTP3_MSG_DEC, {mtp3_msg,2,3,{mtp3_routing_label,12,1,92},undefined,<<9,0,3,13,24,10,18,7,0,18,4,83,132,9,0,23,11,18,6,0,18,4,68,119,88,16,70,35,67,100,65,73,4,81,1,2,200,107,42,40,40,6,7,0,17,134,5,1,1,1,160,29,97,27,128,2,7,128,161,9,6,7,4,0,0,1,0,1,3,162,3,2,1,0,163,5,161,3,2,1,0,108,13,163,11,2,1,64,2,1,8,48,3,10,1,0>>}).
parse_test() ->
?assertEqual(?MTP3_MSG_DEC, mtp3_codec:parse_mtp3_msg(?MTP3_MSG_BIN)).