Skip to content

Commit

Permalink
Test Debug for LineColumn
Browse files Browse the repository at this point in the history
  • Loading branch information
sourcefrog committed Nov 28, 2023
1 parent 97af909 commit f206099
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/span.rs
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,12 @@ mod test {

use super::*;

#[test]
fn linecolumn_debug_form() {
let lc = LineColumn { line: 1, column: 2 };
assert_eq!(format!("{:?}", lc), "LineColumn(1, 2)");
}

#[test]
fn span_debug_form() {
let span = Span::quad(1, 2, 3, 4);
Expand Down

0 comments on commit f206099

Please sign in to comment.