aboutsummaryrefslogtreecommitdiffstats
path: root/tests/blogc-make/check_settings.c
diff options
context:
space:
mode:
authorRafael G. Martins <rafael@rafaelmartins.eng.br>2017-03-06 20:40:34 +0100
committerRafael G. Martins <rafael@rafaelmartins.eng.br>2017-03-06 20:40:34 +0100
commitab1120742467f887b33cd89addf3c89b5f9bf5b6 (patch)
treee32c536ee8c601363f06f234f519b0d35cd19873 /tests/blogc-make/check_settings.c
parent0737394fce1ccb4057c81e8bf43dcc1d422674e0 (diff)
downloadblogc-ab1120742467f887b33cd89addf3c89b5f9bf5b6.tar.gz
blogc-ab1120742467f887b33cd89addf3c89b5f9bf5b6.tar.bz2
blogc-ab1120742467f887b33cd89addf3c89b5f9bf5b6.zip
make: s/env/global/
Diffstat (limited to 'tests/blogc-make/check_settings.c')
-rw-r--r--tests/blogc-make/check_settings.c48
1 files changed, 24 insertions, 24 deletions
diff --git a/tests/blogc-make/check_settings.c b/tests/blogc-make/check_settings.c
index 93aed59..6f90291 100644
--- a/tests/blogc-make/check_settings.c
+++ b/tests/blogc-make/check_settings.c
@@ -121,14 +121,14 @@ test_settings2(void **state)
assert_null(err);
assert_non_null(s);
assert_null(s->root_dir);
- assert_int_equal(bc_trie_size(s->env), 7);
- assert_string_equal(bc_trie_lookup(s->env, "BOLA"), "asd");
- assert_string_equal(bc_trie_lookup(s->env, "GUDA"), "qwe");
- assert_string_equal(bc_trie_lookup(s->env, "AUTHOR_NAME"), "chunda");
- assert_string_equal(bc_trie_lookup(s->env, "AUTHOR_EMAIL"), "chunda@example.com");
- assert_string_equal(bc_trie_lookup(s->env, "SITE_TITLE"), "Fuuuuuuuuu");
- assert_string_equal(bc_trie_lookup(s->env, "SITE_TAGLINE"), "My cool tagline");
- assert_string_equal(bc_trie_lookup(s->env, "BASE_DOMAIN"), "http://example.com");
+ assert_int_equal(bc_trie_size(s->global), 7);
+ assert_string_equal(bc_trie_lookup(s->global, "BOLA"), "asd");
+ assert_string_equal(bc_trie_lookup(s->global, "GUDA"), "qwe");
+ assert_string_equal(bc_trie_lookup(s->global, "AUTHOR_NAME"), "chunda");
+ assert_string_equal(bc_trie_lookup(s->global, "AUTHOR_EMAIL"), "chunda@example.com");
+ assert_string_equal(bc_trie_lookup(s->global, "SITE_TITLE"), "Fuuuuuuuuu");
+ assert_string_equal(bc_trie_lookup(s->global, "SITE_TAGLINE"), "My cool tagline");
+ assert_string_equal(bc_trie_lookup(s->global, "BASE_DOMAIN"), "http://example.com");
assert_int_equal(bc_trie_size(s->settings), 17);
assert_string_equal(bc_trie_lookup(s->settings, "source_ext"), ".txt");
assert_string_equal(bc_trie_lookup(s->settings, "html_ext"), "/index.html");
@@ -213,14 +213,14 @@ test_settings_env2(void **state)
assert_null(err);
assert_non_null(s);
assert_null(s->root_dir);
- assert_int_equal(bc_trie_size(s->env), 7);
- assert_string_equal(bc_trie_lookup(s->env, "BOLA"), "asd");
- assert_string_equal(bc_trie_lookup(s->env, "GUDA"), "qwe");
- assert_string_equal(bc_trie_lookup(s->env, "AUTHOR_NAME"), "chunda");
- assert_string_equal(bc_trie_lookup(s->env, "AUTHOR_EMAIL"), "chunda@example.com");
- assert_string_equal(bc_trie_lookup(s->env, "SITE_TITLE"), "Fuuuuuuuuu");
- assert_string_equal(bc_trie_lookup(s->env, "SITE_TAGLINE"), "My cool tagline");
- assert_string_equal(bc_trie_lookup(s->env, "BASE_DOMAIN"), "http://example.com");
+ assert_int_equal(bc_trie_size(s->global), 7);
+ assert_string_equal(bc_trie_lookup(s->global, "BOLA"), "asd");
+ assert_string_equal(bc_trie_lookup(s->global, "GUDA"), "qwe");
+ assert_string_equal(bc_trie_lookup(s->global, "AUTHOR_NAME"), "chunda");
+ assert_string_equal(bc_trie_lookup(s->global, "AUTHOR_EMAIL"), "chunda@example.com");
+ assert_string_equal(bc_trie_lookup(s->global, "SITE_TITLE"), "Fuuuuuuuuu");
+ assert_string_equal(bc_trie_lookup(s->global, "SITE_TAGLINE"), "My cool tagline");
+ assert_string_equal(bc_trie_lookup(s->global, "BASE_DOMAIN"), "http://example.com");
assert_int_equal(bc_trie_size(s->settings), 17);
assert_string_equal(bc_trie_lookup(s->settings, "source_ext"), ".txt");
assert_string_equal(bc_trie_lookup(s->settings, "html_ext"), "/index.html");
@@ -305,14 +305,14 @@ test_settings_copy_files(void **state)
assert_null(err);
assert_non_null(s);
assert_null(s->root_dir);
- assert_int_equal(bc_trie_size(s->env), 7);
- assert_string_equal(bc_trie_lookup(s->env, "BOLA"), "asd");
- assert_string_equal(bc_trie_lookup(s->env, "GUDA"), "qwe");
- assert_string_equal(bc_trie_lookup(s->env, "AUTHOR_NAME"), "chunda");
- assert_string_equal(bc_trie_lookup(s->env, "AUTHOR_EMAIL"), "chunda@example.com");
- assert_string_equal(bc_trie_lookup(s->env, "SITE_TITLE"), "Fuuuuuuuuu");
- assert_string_equal(bc_trie_lookup(s->env, "SITE_TAGLINE"), "My cool tagline");
- assert_string_equal(bc_trie_lookup(s->env, "BASE_DOMAIN"), "http://example.com");
+ assert_int_equal(bc_trie_size(s->global), 7);
+ assert_string_equal(bc_trie_lookup(s->global, "BOLA"), "asd");
+ assert_string_equal(bc_trie_lookup(s->global, "GUDA"), "qwe");
+ assert_string_equal(bc_trie_lookup(s->global, "AUTHOR_NAME"), "chunda");
+ assert_string_equal(bc_trie_lookup(s->global, "AUTHOR_EMAIL"), "chunda@example.com");
+ assert_string_equal(bc_trie_lookup(s->global, "SITE_TITLE"), "Fuuuuuuuuu");
+ assert_string_equal(bc_trie_lookup(s->global, "SITE_TAGLINE"), "My cool tagline");
+ assert_string_equal(bc_trie_lookup(s->global, "BASE_DOMAIN"), "http://example.com");
assert_int_equal(bc_trie_size(s->settings), 17);
assert_string_equal(bc_trie_lookup(s->settings, "source_ext"), ".txt");
assert_string_equal(bc_trie_lookup(s->settings, "html_ext"), "/index.html");