=== source code for shell_SUITE:progex_bit_syntax/1

=== Test case started with:
shell_SUITE:progex_bit_syntax([{watchdog,<0.7643.6>},
                               {tc_logfile,
                                   "/home/pi/R16B03/otp-support/release/tests/test_server/ct_run.test_server@localhost.2014-01-03_17.38.00/tests.stdlib_test.logs/run.2014-01-03_17.51.25/shell_suite.progex_bit_syntax.html"},
                               {tc_group_properties,[{name,progex}]},
                               {tc_group_path,[]},
                               {data_dir,
                                   "/home/pi/R16B03/otp-support/release/tests/stdlib_test/shell_SUITE_data/"},
                               {priv_dir,
                                   "/home/pi/R16B03/otp-support/release/tests/test_server/ct_run.test_server@localhost.2014-01-03_17.38.00/tests.stdlib_test.logs/run.2014-01-03_17.51.25/log_private/"},
                               {nodenames,[]}])

=== Current directory is "/home/pi/R16B03/otp-support/release/tests/test_server/ct_run.test_server@localhost.2014-01-03_17.38.00"

=== Started at 2014-01-03 20:21:00


*** Testing Bin11 = <<1, 17, 42>>, true = [1, 17, 42] =:= binary_to_list(Bin11), Bin12 = <<"abc">>, true = [97, 98, 99] =:= binary_to_list(Bin12), A = 1, B = 17, C = 42, Bin2 = <>, true = [1, 17, 00, 42] =:= binary_to_list(Bin2), <> = Bin2, true = D =:= 273, true = E =:= 00, true = [42] =:= binary_to_list(F), Fun4 = fun(Dgram) -> DgramSize = byte_size(Dgram), case Dgram of <<4:4, HLen:4, SrvcType:8, TotLen:16, ID:16, Flgs:3, FragOff:13, TTL:8, Proto:8, HdrChkSum:16, SrcIP:32, DestIP:32, RestDgram/binary>> when HLen>=5, 4*HLen= OptsLen = 4*(HLen - 5), <> = RestDgram, {SrvcType, TotLen, Flgs, FragOff, ID, HdrChkSum, Proto, TTL, SrcIP, DestIP, Data, Opts}; _ -> not_ok end end, true = Fun4(<<>>) =:= not_ok, true = is_tuple(Fun4(list_to_binary ([<<4:4,5:4>>,list_to_binary(lists:seq(1,255))]))), X = 23432324, Y = 24324234, <<10:7>> = <>, Z = 234324324, XYZ = <>, true = [20] =:= binary_to_list(XYZ), Hello1 = <<"hello">>, Hello2 = <<$h,$e,$l,$l,$o>>, true = "hello" =:= binary_to_list(Hello1), true = "hello" =:= binary_to_list(Hello2), FunM1 = fun(<>) -> {X1,Y1} end, true = {<<"1234567">>,<<"8">>} =:= FunM1(<<"12345678">>), FunM2 = fun(<<_X1:7/binary-unit:7, _Y1:1/binary-unit:1>>) -> ok; (_) -> not_ok end, true = not_ok =:= FunM2(<<"1">>), ok. === Ended at 2014-01-03 20:21:00 === successfully completed test case === returned value = ok


Test run history | Top level test index