mirror of
https://github.com/dankamongmen/notcurses
synced 2025-03-09 09:09:03 -04:00
just the basics
This commit is contained in:
parent
e353fa5536
commit
1fcae27627
@ -7,6 +7,9 @@ extern "C" {
|
||||
|
||||
const char* notcurses_version(void);
|
||||
|
||||
int notcurses_init(void);
|
||||
int notcurses_stop(void);
|
||||
|
||||
#ifdef __cplusplus
|
||||
} // extern "C"
|
||||
#endif
|
||||
|
@ -1,5 +1,12 @@
|
||||
#include <stdlib.h>
|
||||
#include <notcurses.h>
|
||||
|
||||
int main(void){
|
||||
if(notcurses_init()){
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
if(notcurses_stop()){
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
return EXIT_SUCCESS;
|
||||
}
|
||||
|
@ -9,3 +9,13 @@ static const char NOTCURSES_VERSION[] =
|
||||
const char* notcurses_version(void){
|
||||
return NOTCURSES_VERSION;
|
||||
}
|
||||
|
||||
int notcurses_init(void){
|
||||
int ret = 0;
|
||||
return ret;
|
||||
}
|
||||
|
||||
int notcurses_stop(void){
|
||||
int ret = 0;
|
||||
return ret;
|
||||
}
|
||||
|
7
tests/notcurses.cpp
Normal file
7
tests/notcurses.cpp
Normal file
@ -0,0 +1,7 @@
|
||||
#include <notcurses.h>
|
||||
#include "main.h"
|
||||
|
||||
TEST(Notcurses, BasicLifetime) {
|
||||
ASSERT_EQ(0, notcurses_init());
|
||||
EXPECT_EQ(0, notcurses_stop());
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user