1 2 3 4 5 6 7 8 9 10 11 12 13 14
use panfix::{Position, Source}; #[test] fn test_source() { let source = Source::new("TEST", "line\n".to_owned()); assert_eq!( source.end_of_file(), Position { line: 0, col: 4, utf8_col: 4 } ); }