Пример #1
0
void
compares_tests(void)
{
	test_fixture_start();

	fixture_setup(&setup);

	run_test(test_eq_compare_true);
	run_test(test_eq_compare_false);
	run_test(test_ne_compare_true);
	run_test(test_ne_compare_false);
	run_test(test_lt_compare_true);
	run_test(test_lt_compare_false);
	run_test(test_le_compare_true);
	run_test(test_le_compare_false);
	run_test(test_ge_compare_true);
	run_test(test_ge_compare_false);
	run_test(test_gt_compare_true);
	run_test(test_gt_compare_false);
	run_test(test_compares_prefer_numbers);
	run_test(test_compares_convert_string_to_numbers);
	run_test(test_leading_spaces_ok);
	run_test(test_trailing_spaces_ok);
	run_test(test_spaces_before_op_ok);
	run_test(test_spaces_after_op_ok);
	run_test(test_spaces_in_op_fail);
	run_test(test_wrong_op_fail);

	test_fixture_end();
}
Пример #2
0
void test_fixture_slist_index(void)
{
    test_fixture_start();
    fixture_setup(slist_setup_ints);
    fixture_teardown(slist_teardown);
    run_test(test_slist_index);
    test_fixture_end();
}
Пример #3
0
void test_fixture_slist_insert(void)
{
    test_fixture_start();
    fixture_setup(slist_setup_ints);
    fixture_teardown(slist_teardown);
    run_test(test_slist_insert_at_front);
    run_test(test_slist_insert_at_back);
    run_test(test_slist_insert_in_middle);
    test_fixture_end();
}
Пример #4
0
void
format_edit_selection_cmd_tests(void)
{
	test_fixture_start();

	fixture_setup(setup);
	fixture_teardown(teardown);

	run_test(test_selection);

	test_fixture_end();
}
Пример #5
0
Файл: clear.c Проект: sklnd/vifm
void
clear_tests(void)
{
	test_fixture_start();

	fixture_setup(setup);

	run_test(test_envvar_remove_on_clear);
	run_test(test_envvar_reset_on_clear);

	test_fixture_end();
}
Пример #6
0
void
def_keys_and_user_mappings(void)
{
	test_fixture_start();

	fixture_setup(add_custom_keys);
	fixture_teardown(teardown);

	run_test(cmd_line_tst);

	test_fixture_end();
}
Пример #7
0
void
pick_longest(void)
{
	test_fixture_start();

	fixture_setup(setup);

	run_test(test_when_previous_unknown);
	run_test(test_when_previous_known);

	test_fixture_end();
}
Пример #8
0
void
builtin_tests(void)
{
	test_fixture_start();

	fixture_setup(setup);
	fixture_teardown(teardown);

	run_test(test_empty_line_completion);
	run_test(test_set);

	test_fixture_end();
}
Пример #9
0
void test_fixture_slist_reverse(void)
{
    test_fixture_start();

    run_test(test_slist_reverse_empty);

    fixture_setup(slist_setup_ints);
    fixture_teardown(slist_teardown);

    run_test(test_slist_reverse_existing);

    test_fixture_end();
}
Пример #10
0
void test_fixture_dlist_prepend(void)
{
    test_fixture_start();

    run_test(test_dlist_prepend_to_empty);

    fixture_setup(dlist_setup_ints);
    fixture_teardown(dlist_teardown);

    run_test(test_dlist_prepend_to_existing);

    test_fixture_end();
}
Пример #11
0
void test_fixture_dlist_mergesort(void)
{
    test_fixture_start();

    run_test(test_dlist_mergesort_empty);

    fixture_setup(dlist_setup_ints_random);
    fixture_teardown(dlist_teardown);

    run_test(test_dlist_mergesort_existing);

    test_fixture_end();
}
Пример #12
0
void test_fixture_slist_remove_data(void)
{
    test_fixture_start();

    run_test(test_slist_remove_data_from_empty);

    fixture_setup(slist_setup_ints);
    fixture_teardown(slist_teardown);

    run_test(test_slist_remove_data_from_existing);
    run_test(test_slist_remove_data_from_existing_until_empty);

    test_fixture_end();
}
Пример #13
0
void test_fixture_file()
{
	test_fixture_start();

	fixture_setup (setup);
	fixture_teardown (teardown);

	run_test (test_open_file);
	run_test (test_thumbnails);
	run_test (test_write_file);
	run_test (test_defaults);

	test_fixture_end();
}
Пример #14
0
void
count_tests(void)
{
	test_fixture_start();

	fixture_setup(&add_custom_keys);

	run_test(test_no_number_get_not_def);
	run_test(test_normal_number_get_it);
	run_test(test_huge_number_get_intmax);
	run_test(test_max_count_is_handled_correctly);
	run_test(test_nops_count_not_passed);

	test_fixture_end();
}
Пример #15
0
void
envvar_tests(void)
{
	test_fixture_start();

	fixture_setup(&setup);

	run_test(test_simple_ok);
	run_test(test_leading_spaces_ok);
	run_test(test_trailing_spaces_ok);
	run_test(test_space_in_the_middle_fail);
	run_test(test_concatenation);

	test_fixture_end();
}
Пример #16
0
void
history_tests(void)
{
	test_fixture_start();

	fixture_setup(setup);
	fixture_teardown(teardown);

	run_test(test_view_history_after_reset_contains_valid_data);
	run_test(test_view_history_avoids_duplicates);
	run_test(test_after_history_reset_ok);
	run_test(test_add_after_decreasing_ok);
	run_test(test_add_after_increasing_ok);

	test_fixture_end();
}
Пример #17
0
void
general_tests(void)
{
	test_fixture_start();

	fixture_setup(&setup);

	run_test(test_empty_fail);
	run_test(test_non_quoted_fail);
	run_test(test_double_dot_fail);
	run_test(test_starts_with_dot_fail);
	run_test(test_ends_with_dot_fail);
	run_test(test_fail_position_correct);
	run_test(test_spaces_and_fail_position_correct);

	test_fixture_end();
}
Пример #18
0
void
completion_tests(void)
{
	test_fixture_start();

	fixture_setup(setup);
	fixture_teardown(teardown);

	run_test(test_skip_goto);
	run_test(test_skip_abbreviations);
	run_test(test_dont_remove_range);
	run_test(test_dont_remove_cmd);
	run_test(test_skip_complete_args);
	run_test(test_com_completion);
	run_test(test_delc_completion);

	test_fixture_end();
}
Пример #19
0
void
statements_tests(void)
{
	test_fixture_start();

	fixture_setup(&setup);

	run_test(test_eq_compare_true);
	run_test(test_eq_compare_false);
	run_test(test_ne_compare_true);
	run_test(test_ne_compare_false);
	run_test(test_leading_spaces_ok);
	run_test(test_trailing_spaces_ok);
	run_test(test_spaces_before_op_ok);
	run_test(test_spaces_after_op_ok);

	test_fixture_end();
}
Пример #20
0
void
undo_test(void)
{
	test_fixture_start();

	fixture_setup(setup);

	run_test(test_underflow);
	run_test(test_redo);
	run_test(test_list_truncating);
	run_test(test_cmd_1undo_1redo);
	run_test(test_failed_operation);
	run_test(test_disbalance);
	run_test(test_cannot_be_undone);
	run_test(test_removing_of_incomplete_groups);
	run_test(test_skipping);
	run_test(test_to_many_commands_and_continue);

	test_fixture_end();
}