예제 #1
0
파일: eval_arglist.c 프로젝트: KryDos/vifm
void
echo_tests(void)
{
	static const function_t echo_function = { "a", 1, &echo_builtin };

	test_fixture_start();

	assert_int_equal(0, function_register(&echo_function));

	run_test(test_one_arg);
	run_test(test_two_space_separated_args);
	run_test(test_two_dot_separated_args);
	run_test(test_double_single_quote);
	run_test(test_wrong_expression_position);
	run_test(test_empty_parens_fail);
	run_test(test_chars_after_function_call_fail);
	run_test(test_statement);
	run_test(test_statement_and_not_statement);
	run_test(test_function_call);
	run_test(test_broken_comparison_operator);

	test_fixture_end();
}
예제 #2
0
int configure (struct lmodule *irr) {
 function_register ("find-network-interfaces-proc", 1, (void *)find_network_interfaces_proc);
 function_register ("find-network-interfaces-sys", 1, (void *)find_network_interfaces_sys);

 return 0;
}
예제 #3
0
SETUP_ONCE()
{
	static const function_t echo_function = { "a", 1, &echo_builtin };
	assert_int_equal(0, function_register(&echo_function));
}
예제 #4
0
파일: laziness.c 프로젝트: eerden/vifm
SETUP_ONCE()
{
	static const function_t function_a = { "a", 0, &dummy };

	assert_success(function_register(&function_a));
}