File: test_mark_clone.c

package info (click to toggle)
mle 1.7.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,108 kB
  • sloc: ansic: 13,335; sh: 728; php: 228; makefile: 83
file content (12 lines) | stat: -rw-r--r-- 320 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
#include "test.h"

char *str = "hello\nworld";

void test(buffer_t *buf, mark_t *cur) {
    mark_t *other;
    mark_clone(cur, &other);
    ASSERT("neq", 1, other != cur ? 1 : 0);
    ASSERT("next", 1, other == cur->next ? 1 : 0);
    ASSERT("line", cur->bline, other->bline);
    ASSERT("col", cur->col, other->col);
}