Commit 102ce25e authored by Liam's avatar Liam Committed by GitHub

Merge pull request #3 from dcampbell24/fix-build

fix broken build cargo test
parents 5e287bf4 b8a82981
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