Fixup tests
Fixing compile errors and out of date tests. oops.
This commit is contained in:
parent
c216a32791
commit
b4f7301768
|
@ -1,7 +1,7 @@
|
|||
#ifndef ELM_CODE_PRIVATE_H
|
||||
# define ELM_CODE_PRIVATE_H
|
||||
|
||||
extern int _elm_code_lib_log_dom;
|
||||
int _elm_code_lib_log_dom;
|
||||
|
||||
#ifdef ERR
|
||||
# undef ERR
|
||||
|
|
|
@ -83,11 +83,14 @@ END_TEST
|
|||
|
||||
START_TEST (elm_code_text_newline_position_test)
|
||||
{
|
||||
short nllen;
|
||||
const char *unixtext = "a test\nwith newline";
|
||||
const char *wintext = "a windows\r\nnewline";
|
||||
|
||||
ck_assert_int_eq(6, elm_code_text_newlinenpos(unixtext, strlen(unixtext)));
|
||||
ck_assert_int_eq(9, elm_code_text_newlinenpos(wintext, strlen(wintext)));
|
||||
ck_assert_int_eq(6, elm_code_text_newlinenpos(unixtext, strlen(unixtext), &nllen));
|
||||
ck_assert_int_eq(1, nllen);
|
||||
ck_assert_int_eq(9, elm_code_text_newlinenpos(wintext, strlen(wintext), &nllen));
|
||||
ck_assert_int_eq(2, nllen);
|
||||
}
|
||||
END_TEST
|
||||
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
#include "elm_code_suite.h"
|
||||
|
||||
#include "widget/elm_code_widget.c"
|
||||
#include "widget/elm_code_widget_tooltip.c"
|
||||
|
||||
static void _assert_cell_type(Evas_Textgrid_Cell cell, Elm_Code_Token_Type type, int id)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue