Reading a line into the buffer was the only logic complex enough to be worth testing really, and exposing the necessary parts of it to test it effectively was a pain. Makes more sense to move read_line out and throw away most of the tests.
13 lines
139 B
C
13 lines
139 B
C
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
|
|
#include "repl.h"
|
|
|
|
static repl_t repl;
|
|
|
|
int main(void)
|
|
{
|
|
run_repl(&repl);
|
|
return EXIT_SUCCESS;
|
|
}
|