Commit b8a82981 authored by David Campbell's avatar David Campbell

fix broken build cargo test

parent 5e287bf4
use super::*;
use context;
fn assert_cursor_pos(s: &str, cursor: usize, expected_pos: CursorPosition) {
let buf = Buffer::from(s.to_owned());
let words = buf.words();
let words = context::get_buffer_words(&buf);
let pos = CursorPosition::get(cursor, &words[..]);
assert!(expected_pos == pos,
format!("buffer: {:?}, cursor: {}, expected pos: {:?}, pos: {:?}",
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment