#include <pocketsphinx.h>
#include <stdio.h>
#include <string.h>

#include "pocketsphinx_internal.h"
#include "test_macros.h"
#include "ps_test.c"

int
main(int argc, char *argv[])
{
	cmd_ln_t *config;

	TEST_ASSERT(config =
		    cmd_ln_init(NULL, ps_args(), TRUE,
				"-hmm", MODELDIR "/en-us/en-us",
				"-lm", MODELDIR "/en-us/en-us.lm.bin",
				"-dict", MODELDIR "/en-us/cmudict-en-us.dict",
				"-fwdflatlw", "6.5",
				"-fwdtree", "no",
				"-fwdflat", "yes",
				"-bestpath", "no",
				"-fwdflatbeam", "1e-30",
				"-input_endian", "little",
				"-samprate", "16000", NULL));
	return ps_decoder_test(config, "FWDFLAT", "go forward ten meters");
}