<commit_before>#include <glib.h>
#include <locale.h>
#include "config.h"

static MarmiteConfig *run_opts(int argc, ...) {
    char *argv[argc+1];
    va_list varg;
    va_start(varg, argc);
    for (int n = 0; n < argc; ++n) {
        argv[n] = va_arg(varg, char*);
    }
    va_end(varg);
    argv[argc] = NULL;
    return marmite_config(argc, argv, NULL);
}

static void default_config(void) {
    MarmiteConfig *cfg = run_opts(1, "marmite");
    g_assert_nonnull(cfg);
    g_assert_true(g_str_has_suffix(cfg->command[0], "sh"));
    g_assert_cmpstr(cfg->font, ==, "VL Gothic 16");
    g_assert_cmpstr(cfg->title, ==, "Marmite");<commit_msg>change default font preferences in test too<commit_after>#include <glib.h>
#include <locale.h>
#include "config.h"

static MarmiteConfig *run_opts(int argc, ...) {
    char *argv[argc+1];
    va_list varg;
    va_start(varg, argc);
    for (int n = 0; n < argc; ++n) {
        argv[n] = va_arg(varg, char*);
    }
    va_end(varg);
    argv[argc] = NULL;
    return marmite_config(argc, argv, NULL);
}

static void default_config(void) {
    MarmiteConfig *cfg = run_opts(1, "marmite");
    g_assert_nonnull(cfg);
    g_assert_true(g_str_has_suffix(cfg->command[0], "sh"));
    g_assert_cmpstr(cfg->font, ==, "M+ 1mn regular,VL Gothic,Noto Sans Mono CJK JP 16");
    g_assert_cmpstr(cfg->title, ==, "Marmite");
{'fraction_non_alphanumeric': 0.16777531411677754, 'fraction_numerical': 0.009608277900960829, 'mean_word_length': 3.888086642599278, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5745765', 'n_tokens_mistral': 553, 'n_tokens_neox': 540, 'n_words': 109}