Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tr3ysmith committed Jan 20, 2024
1 parent 514eecf commit c8eca93
Showing 1 changed file with 22 additions and 2 deletions.
24 changes: 22 additions & 2 deletions src/entity.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2878,9 +2878,9 @@ mod tests {
}

#[test]
fn write_insert_no_extrusion_on_r12() {
fn write_insert_no_extrusion_on_r11() {
let mut drawing = Drawing::new();
drawing.header.version = AcadVersion::R12;
drawing.header.version = AcadVersion::R11;
let ins = Insert {
extrusion_direction: Vector::new(1.0, 2.0, 3.0),
..Default::default()
Expand All @@ -2897,6 +2897,26 @@ mod tests {
);
}

#[test]
fn write_insert_extrusion_on_r12() {
let mut drawing = Drawing::new();
drawing.header.version = AcadVersion::R12;
let ins = Insert {
extrusion_direction: Vector::new(1.0, 2.0, 3.0),
..Default::default()
};
let ent = Entity::new(EntityType::Insert(ins));
drawing.add_entity(ent);
assert_contains_pairs(
&drawing,
vec![
CodePair::new_f64(210, 1.0),
CodePair::new_f64(220, 2.0),
CodePair::new_f64(230, 3.0),
],
);
}

#[test]
fn write_insert_extrusion_on_r13() {
let mut drawing = Drawing::new();
Expand Down

0 comments on commit c8eca93

Please sign in to comment.