9unit/test/append-test-log.c

54 lines
1.2 KiB
C
Raw Normal View History

2023-11-10 15:30:44 -05:00
/*
9unit
Copyright (C) Jonathan Lamothe <jonathan@jlamothe.net>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this program. If not, see
<http://www.gnu.org/licenses/>.
*/
#include <u.h>
2023-11-10 16:17:06 -05:00
#include <libc.h>
2023-11-10 15:30:44 -05:00
#include "../9unit.h"
2023-11-10 16:17:06 -05:00
#include "util.h"
2023-11-10 15:30:44 -05:00
#include "append-test-log.h"
2023-11-10 16:17:06 -05:00
// Local Prototypes
static void append_to_empty(TestState *);
2023-11-10 15:30:44 -05:00
// Public Functions
void
2023-11-10 16:17:06 -05:00
test_append_test_log(TestState *s)
{
print("append_test_log()\n");
append_to_empty(s);
}
// Local Functions
static void
append_to_empty(TestState *)
2023-11-10 15:30:44 -05:00
{
2023-11-10 16:17:06 -05:00
TestState test;
print("\tappend to empty\n");
mk_sample_state(&test);
append_test_log(&test, "foo");
2023-11-10 15:30:44 -05:00
}
//jl