Skip to content

Commit

Permalink
#37 Updates 'index_txt' test file -> redirect_stderr.
Browse files Browse the repository at this point in the history
  • Loading branch information
ezorita committed May 18, 2018
1 parent 9de791c commit 9eb2930
Showing 1 changed file with 56 additions and 0 deletions.
56 changes: 56 additions & 0 deletions test/test_index_txt.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ test_txt_new
{
sym_t * sym = sym_new_dna();
test_assert_critical(sym != NULL);

redirect_stderr();

txt_t * txt;

Expand Down Expand Up @@ -42,13 +44,17 @@ test_txt_new

txt_free(txt);
sym_free(sym);

unredirect_stderr();
}


void
test_txt_sym
(void)
{
redirect_stderr();

sym_t * sym = sym_new_dna();
test_assert_critical(sym != NULL);

Expand Down Expand Up @@ -81,13 +87,17 @@ test_txt_sym

txt_free(txt);
sym_free(sym);

unredirect_stderr();
}


void
test_txt_sym_range
(void)
{
redirect_stderr();

sym_t * sym = sym_new_dna();
test_assert_critical(sym != NULL);

Expand Down Expand Up @@ -134,13 +144,17 @@ test_txt_sym_range

txt_free(txt);
sym_free(sym);

unredirect_stderr();
}


void
test_txt_append
(void)
{
redirect_stderr();

sym_t * sym = sym_new_dna();
test_assert_critical(sym != NULL);

Expand Down Expand Up @@ -210,13 +224,17 @@ test_txt_append

txt_free(txt);
sym_free(sym);

unredirect_stderr();
}


void
test_txt_append_wildcard
(void)
{
redirect_stderr();

sym_t * sym = sym_new_dna();
test_assert_critical(sym != NULL);

Expand Down Expand Up @@ -252,13 +270,17 @@ test_txt_append_wildcard

txt_free(txt);
sym_free(sym);

unredirect_stderr();
}


void
test_txt_commit_seq
(void)
{
redirect_stderr();

sym_t * sym = sym_new_dna();
test_assert_critical(sym != NULL);

Expand Down Expand Up @@ -297,13 +319,17 @@ test_txt_commit_seq

txt_free(txt);
sym_free(sym);

unredirect_stderr();
}


void
test_txt_commit_rc
(void)
{
redirect_stderr();

sym_t * sym = sym_new_dna();
test_assert_critical(sym != NULL);

Expand Down Expand Up @@ -404,13 +430,17 @@ test_txt_commit_rc

txt_free(txt);
sym_free(sym);

unredirect_stderr();
}


void
test_txt_length
(void)
{
redirect_stderr();

sym_t * sym = sym_new_dna();
test_assert_critical(sym != NULL);

Expand All @@ -435,13 +465,17 @@ test_txt_length

txt_free(txt);
sym_free(sym);

unredirect_stderr();
}


void
test_txt_wildcard_count
(void)
{
redirect_stderr();

sym_t * sym = sym_new_dna();
test_assert_critical(sym != NULL);

Expand All @@ -463,13 +497,17 @@ test_txt_wildcard_count

txt_free(txt);
sym_free(sym);

unredirect_stderr();
}


void
test_txt_get_symbols
(void)
{
redirect_stderr();

sym_t * sym = sym_new_dna();
test_assert_critical(sym != NULL);

Expand All @@ -481,13 +519,17 @@ test_txt_get_symbols

txt_free(txt);
sym_free(sym);

unredirect_stderr();
}


void
test_txt_seq_helpers
(void)
{
redirect_stderr();

sym_t * sym = sym_new_dna();
test_assert_critical(sym != NULL);

Expand Down Expand Up @@ -523,13 +565,17 @@ test_txt_seq_helpers

txt_free(txt);
sym_free(sym);

unredirect_stderr();
}


void
test_txt_pos_to_str
(void)
{
redirect_stderr();

sym_t * sym = sym_new_dna();
test_assert_critical(sym != NULL);

Expand All @@ -555,12 +601,16 @@ test_txt_pos_to_str

txt_free(txt);
sym_free(sym);

unredirect_stderr();
}

void
test_txt_str_to_pos
(void)
{
redirect_stderr();

sym_t * sym = sym_new_dna();
test_assert_critical(sym != NULL);

Expand Down Expand Up @@ -594,6 +644,8 @@ test_txt_str_to_pos

txt_free(txt);
sym_free(sym);

unredirect_stderr();
}


Expand All @@ -602,6 +654,8 @@ void
test_txt_file
(void)
{
redirect_stderr();

sym_t * sym = sym_new_dna();
test_assert_critical(sym != NULL);

Expand Down Expand Up @@ -685,6 +739,8 @@ test_txt_file

txt_free(txt);
sym_free(sym);

unredirect_stderr();
}


Expand Down

0 comments on commit 9eb2930

Please sign in to comment.