=== source code for beam_literals_SUITE:literal_type_tests/1

=== Test case started with:
beam_literals_SUITE:literal_type_tests([{watchdog,<0.5179.0>},
                                        {tc_logfile,
                                         "/home/pi/R16B03/otp-support/release/tests/test_server/ct_run.test_server@localhost.2014-01-03_13.54.23/tests.emulator_test.logs/run.2014-01-03_13.56.47/beam_literals_suite.literal_type_tests.html"},
                                        {tc_group_properties,[]},
                                        {tc_group_path,[]},
                                        {data_dir,
                                         "/home/pi/R16B03/otp-support/release/tests/emulator_test/beam_literals_SUITE_data/"},
                                        {priv_dir,
                                         "/home/pi/R16B03/otp-support/release/tests/test_server/ct_run.test_server@localhost.2014-01-03_13.54.23/tests.emulator_test.logs/run.2014-01-03_13.56.47/log_private/"},
                                        {nodenames,[]}])

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

=== Started at 2014-01-03 14:02:06


{is_boolean,42} {is_boolean,3.14} {is_boolean,-3} {is_boolean,32982724987789283473473838474} {is_boolean,[]} {is_boolean,xxxx} {is_integer,42} {is_integer,3.14} {is_integer,-3} {is_integer,32982724987789283473473838474} {is_integer,[]} {is_integer,xxxx} {is_float,42} {is_float,3.14} {is_float,-3} {is_float,32982724987789283473473838474} {is_float,[]} {is_float,xxxx} {is_number,42} {is_number,3.14} {is_number,-3} {is_number,32982724987789283473473838474} {is_number,[]} {is_number,xxxx} {is_atom,42} {is_atom,3.14} {is_atom,-3} {is_atom,32982724987789283473473838474} {is_atom,[]} {is_atom,xxxx} {is_list,42} {is_list,3.14} {is_list,-3} {is_list,32982724987789283473473838474} {is_list,[]} {is_list,xxxx} {is_tuple,42} {is_tuple,3.14} {is_tuple,-3} {is_tuple,32982724987789283473473838474} {is_tuple,[]} {is_tuple,xxxx} {is_pid,42} {is_pid,3.14} {is_pid,-3} {is_pid,32982724987789283473473838474} {is_pid,[]} {is_pid,xxxx} {is_reference,42} {is_reference,3.14} {is_reference,-3} {is_reference,32982724987789283473473838474} {is_reference,[]} {is_reference,xxxx} {is_port,42} {is_port,3.14} {is_port,-3} {is_port,32982724987789283473473838474} {is_port,[]} {is_port,xxxx} {is_binary,42} {is_binary,3.14} {is_binary,-3} {is_binary,32982724987789283473473838474} {is_binary,[]} {is_binary,xxxx} {is_function,42} {is_function,42,0} {is_function,3.14} {is_function,3.14,0} {is_function,-3} {is_function,-3,0} {is_function,32982724987789283473473838474} {is_function,32982724987789283473473838474,0} {is_function,[]} {is_function,[],0} {is_function,xxxx} {is_function,xxxx,0} -module(literal_test). -compile(export_all). test() -> false = begin io:format("~p\n", [{is_boolean,42}]), if is_boolean(42) -> true; true -> false end end, false = begin io:format("~p\n", [{is_boolean,3.14}]), if is_boolean(3.14) -> true; true -> false end end, false = begin io:format("~p\n", [{is_boolean,- 3}]), if is_boolean(- 3) -> true; true -> false end end, false = begin io:format("~p\n", [{is_boolean,32982724987789283473473838474}]), if is_boolean(32982724987789283473473838474) -> true; true -> false end end, false = begin io:format("~p\n", [{is_boolean,[]}]), if is_boolean([]) -> true; true -> false end end, false = begin io:format("~p\n", [{is_boolean,xxxx}]), if is_boolean(xxxx) -> true; true -> false end end, true = begin io:format("~p\n", [{is_integer,42}]), if is_integer(42) -> true; true -> false end end, false = begin io:format("~p\n", [{is_integer,3.14}]), if is_integer(3.14) -> true; true -> false end end, true = begin io:format("~p\n", [{is_integer,- 3}]), if is_integer(- 3) -> true; true -> false end end, true = begin io:format("~p\n", [{is_integer,32982724987789283473473838474}]), if is_integer(32982724987789283473473838474) -> true; true -> false end end, false = begin io:format("~p\n", [{is_integer,[]}]), if is_integer([]) -> true; true -> false end end, false = begin io:format("~p\n", [{is_integer,xxxx}]), if is_integer(xxxx) -> true; true -> false end end, false = begin io:format("~p\n", [{is_float,42}]), if is_float(42) -> true; true -> false end end, true = begin io:format("~p\n", [{is_float,3.14}]), if is_float(3.14) -> true; true -> false end end, false = begin io:format("~p\n", [{is_float,- 3}]), if is_float(- 3) -> true; true -> false end end, false = begin io:format("~p\n", [{is_float,32982724987789283473473838474}]), if is_float(32982724987789283473473838474) -> true; true -> false end end, false = begin io:format("~p\n", [{is_float,[]}]), if is_float([]) -> true; true -> false end end, false = begin io:format("~p\n", [{is_float,xxxx}]), if is_float(xxxx) -> true; true -> false end end, true = begin io:format("~p\n", [{is_number,42}]), if is_number(42) -> true; true -> false end end, true = begin io:format("~p\n", [{is_number,3.14}]), if is_number(3.14) -> true; true -> false end end, true = begin io:format("~p\n", [{is_number,- 3}]), if is_number(- 3) -> true; true -> false end end, true = begin io:format("~p\n", [{is_number,32982724987789283473473838474}]), if is_number(32982724987789283473473838474) -> true; true -> false end end, false = begin io:format("~p\n", [{is_number,[]}]), if is_number([]) -> true; true -> false end end, false = begin io:format("~p\n", [{is_number,xxxx}]), if is_number(xxxx) -> true; true -> false end end, false = begin io:format("~p\n", [{is_atom,42}]), if is_atom(42) -> true; true -> false end end, false = begin io:format("~p\n", [{is_atom,3.14}]), if is_atom(3.14) -> true; true -> false end end, false = begin io:format("~p\n", [{is_atom,- 3}]), if is_atom(- 3) -> true; true -> false end end, false = begin io:format("~p\n", [{is_atom,32982724987789283473473838474}]), if is_atom(32982724987789283473473838474) -> true; true -> false end end, false = begin io:format("~p\n", [{is_atom,[]}]), if is_atom([]) -> true; true -> false end end, true = begin io:format("~p\n", [{is_atom,xxxx}]), if is_atom(xxxx) -> true; true -> false end end, false = begin io:format("~p\n", [{is_list,42}]), if is_list(42) -> true; true -> false end end, false = begin io:format("~p\n", [{is_list,3.14}]), if is_list(3.14) -> true; true -> false end end, false = begin io:format("~p\n", [{is_list,- 3}]), if is_list(- 3) -> true; true -> false end end, false = begin io:format("~p\n", [{is_list,32982724987789283473473838474}]), if is_list(32982724987789283473473838474) -> true; true -> false end end, true = begin io:format("~p\n", [{is_list,[]}]), if is_list([]) -> true; true -> false end end, false = begin io:format("~p\n", [{is_list,xxxx}]), if is_list(xxxx) -> true; true -> false end end, false = begin io:format("~p\n", [{is_tuple,42}]), if is_tuple(42) -> true; true -> false end end, false = begin io:format("~p\n", [{is_tuple,3.14}]), if is_tuple(3.14) -> true; true -> false end end, false = begin io:format("~p\n", [{is_tuple,- 3}]), if is_tuple(- 3) -> true; true -> false end end, false = begin io:format("~p\n", [{is_tuple,32982724987789283473473838474}]), if is_tuple(32982724987789283473473838474) -> true; true -> false end end, false = begin io:format("~p\n", [{is_tuple,[]}]), if is_tuple([]) -> true; true -> false end end, false = begin io:format("~p\n", [{is_tuple,xxxx}]), if is_tuple(xxxx) -> true; true -> false end end, false = begin io:format("~p\n", [{is_pid,42}]), if is_pid(42) -> true; true -> false end end, false = begin io:format("~p\n", [{is_pid,3.14}]), if is_pid(3.14) -> true; true -> false end end, false = begin io:format("~p\n", [{is_pid,- 3}]), if is_pid(- 3) -> true; true -> false end end, false = begin io:format("~p\n", [{is_pid,32982724987789283473473838474}]), if is_pid(32982724987789283473473838474) -> true; true -> false end end, false = begin io:format("~p\n", [{is_pid,[]}]), if is_pid([]) -> true; true -> false end end, false = begin io:format("~p\n", [{is_pid,xxxx}]), if is_pid(xxxx) -> true; true -> false end end, false = begin io:format("~p\n", [{is_reference,42}]), if is_reference(42) -> true; true -> false end end, false = begin io:format("~p\n", [{is_reference,3.14}]), if is_reference(3.14) -> true; true -> false end end, false = begin io:format("~p\n", [{is_reference,- 3}]), if is_reference(- 3) -> true; true -> false end end, false = begin io:format("~p\n", [{is_reference,32982724987789283473473838474}]), if is_reference(32982724987789283473473838474) -> true; true -> false end end, false = begin io:format("~p\n", [{is_reference,[]}]), if is_reference([]) -> true; true -> false end end, false = begin io:format("~p\n", [{is_reference,xxxx}]), if is_reference(xxxx) -> true; true -> false end end, false = begin io:format("~p\n", [{is_port,42}]), if is_port(42) -> true; true -> false end end, false = begin io:format("~p\n", [{is_port,3.14}]), if is_port(3.14) -> true; true -> false end end, false = begin io:format("~p\n", [{is_port,- 3}]), if is_port(- 3) -> true; true -> false end end, false = begin io:format("~p\n", [{is_port,32982724987789283473473838474}]), if is_port(32982724987789283473473838474) -> true; true -> false end end, false = begin io:format("~p\n", [{is_port,[]}]), if is_port([]) -> true; true -> false end end, false = begin io:format("~p\n", [{is_port,xxxx}]), if is_port(xxxx) -> true; true -> false end end, false = begin io:format("~p\n", [{is_binary,42}]), if is_binary(42) -> true; true -> false end end, false = begin io:format("~p\n", [{is_binary,3.14}]), if is_binary(3.14) -> true; true -> false end end, false = begin io:format("~p\n", [{is_binary,- 3}]), if is_binary(- 3) -> true; true -> false end end, false = begin io:format("~p\n", [{is_binary,32982724987789283473473838474}]), if is_binary(32982724987789283473473838474) -> true; true -> false end end, false = begin io:format("~p\n", [{is_binary,[]}]), if is_binary([]) -> true; true -> false end end, false = begin io:format("~p\n", [{is_binary,xxxx}]), if is_binary(xxxx) -> true; true -> false end end, false = begin io:format("~p\n", [{is_function,42}]), if is_function(42) -> true; true -> false end end, false = begin io:format("~p\n", [{is_function,42,0}]), if is_function(42, 0) -> true; true -> false end end, false = begin io:format("~p\n", [{is_function,3.14}]), if is_function(3.14) -> true; true -> false end end, false = begin io:format("~p\n", [{is_function,3.14,0}]), if is_function(3.14, 0) -> true; true -> false end end, false = begin io:format("~p\n", [{is_function,- 3}]), if is_function(- 3) -> true; true -> false end end, false = begin io:format("~p\n", [{is_function,- 3,0}]), if is_function(- 3, 0) -> true; true -> false end end, false = begin io:format("~p\n", [{is_function,32982724987789283473473838474}]), if is_function(32982724987789283473473838474) -> true; true -> false end end, false = begin io:format("~p\n", [{is_function,32982724987789283473473838474,0}]), if is_function(32982724987789283473473838474, 0) -> true; true -> false end end, false = begin io:format("~p\n", [{is_function,[]}]), if is_function([]) -> true; true -> false end end, false = begin io:format("~p\n", [{is_function,[],0}]), if is_function([], 0) -> true; true -> false end end, false = begin io:format("~p\n", [{is_function,xxxx}]), if is_function(xxxx) -> true; true -> false end end, false = begin io:format("~p\n", [{is_function,xxxx,0}]), if is_function(xxxx, 0) -> true; true -> false end end. :2: Warning: the guard for this clause evaluates to 'false' :2: Warning: this clause cannot match because a previous clause at line 2 always matches {is_boolean,42} {is_boolean,3.14} {is_boolean,-3} {is_boolean,32982724987789283473473838474} {is_boolean,[]} {is_boolean,xxxx} {is_integer,42} {is_integer,3.14} {is_integer,-3} {is_integer,32982724987789283473473838474} {is_integer,[]} {is_integer,xxxx} {is_float,42} {is_float,3.14} {is_float,-3} {is_float,32982724987789283473473838474} {is_float,[]} {is_float,xxxx} {is_number,42} {is_number,3.14} {is_number,-3} {is_number,32982724987789283473473838474} {is_number,[]} {is_number,xxxx} {is_atom,42} {is_atom,3.14} {is_atom,-3} {is_atom,32982724987789283473473838474} {is_atom,[]} {is_atom,xxxx} {is_list,42} {is_list,3.14} {is_list,-3} {is_list,32982724987789283473473838474} {is_list,[]} {is_list,xxxx} {is_tuple,42} {is_tuple,3.14} {is_tuple,-3} {is_tuple,32982724987789283473473838474} {is_tuple,[]} {is_tuple,xxxx} {is_pid,42} {is_pid,3.14} {is_pid,-3} {is_pid,32982724987789283473473838474} {is_pid,[]} {is_pid,xxxx} {is_reference,42} {is_reference,3.14} {is_reference,-3} {is_reference,32982724987789283473473838474} {is_reference,[]} {is_reference,xxxx} {is_port,42} {is_port,3.14} {is_port,-3} {is_port,32982724987789283473473838474} {is_port,[]} {is_port,xxxx} {is_binary,42} {is_binary,3.14} {is_binary,-3} {is_binary,32982724987789283473473838474} {is_binary,[]} {is_binary,xxxx} {is_function,42} {is_function,42,0} {is_function,3.14} {is_function,3.14,0} {is_function,-3} {is_function,-3,0} {is_function,32982724987789283473473838474} {is_function,32982724987789283473473838474,0} {is_function,[]} {is_function,[],0} {is_function,xxxx} {is_function,xxxx,0} Compiling [] transform_module : 0.00 s 42.6 kB lint_module : 0.03 s 42.7 kB expand_module : 0.01 s 45.8 kB core_module : 0.07 s 121.1 kB core_dsetel_module : 0.03 s 121.1 kB kernel_module : 0.06 s 168.8 kB v3_life : 0.01 s 136.8 kB v3_codegen : 0.06 s 70.6 kB beam_a : 0.01 s 70.8 kB beam_clean : 0.01 s 70.8 kB beam_z : 0.01 s 68.9 kB beam_validator : 0.04 s 68.9 kB beam_asm : 0.03 s 0.4 kB {is_boolean,42} {is_boolean,3.14} {is_boolean,-3} {is_boolean,32982724987789283473473838474} {is_boolean,[]} {is_boolean,xxxx} {is_integer,42} {is_integer,3.14} {is_integer,-3} {is_integer,32982724987789283473473838474} {is_integer,[]} {is_integer,xxxx} {is_float,42} {is_float,3.14} {is_float,-3} {is_float,32982724987789283473473838474} {is_float,[]} {is_float,xxxx} {is_number,42} {is_number,3.14} {is_number,-3} {is_number,32982724987789283473473838474} {is_number,[]} {is_number,xxxx} {is_atom,42} {is_atom,3.14} {is_atom,-3} {is_atom,32982724987789283473473838474} {is_atom,[]} {is_atom,xxxx} {is_list,42} {is_list,3.14} {is_list,-3} {is_list,32982724987789283473473838474} {is_list,[]} {is_list,xxxx} {is_tuple,42} {is_tuple,3.14} {is_tuple,-3} {is_tuple,32982724987789283473473838474} {is_tuple,[]} {is_tuple,xxxx} {is_pid,42} {is_pid,3.14} {is_pid,-3} {is_pid,32982724987789283473473838474} {is_pid,[]} {is_pid,xxxx} {is_reference,42} {is_reference,3.14} {is_reference,-3} {is_reference,32982724987789283473473838474} {is_reference,[]} {is_reference,xxxx} {is_port,42} {is_port,3.14} {is_port,-3} {is_port,32982724987789283473473838474} {is_port,[]} {is_port,xxxx} {is_binary,42} {is_binary,3.14} {is_binary,-3} {is_binary,32982724987789283473473838474} {is_binary,[]} {is_binary,xxxx} {is_function,42} {is_function,42,0} {is_function,3.14} {is_function,3.14,0} {is_function,-3} {is_function,-3,0} {is_function,32982724987789283473473838474} {is_function,32982724987789283473473838474,0} {is_function,[]} {is_function,[],0} {is_function,xxxx} {is_function,xxxx,0} === Ended at 2014-01-03 14:02:07 === successfully completed test case === returned value = ok


Test run history | Top level test index