Skip to content

Commit

Permalink
Update tests for Box without center
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasf committed Sep 25, 2024
1 parent 6cf8785 commit 2e58dcc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion Tests/Tests/3DTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ import XCTest

final class Geometry3DTests: XCTestCase {
func test3DBasics() {
Box([20, 20, 20], center: .all)
Box([20, 20, 20])
.aligned(at: .center)
.intersection {
Sphere(diameter: 23)
}
Expand Down
3 changes: 2 additions & 1 deletion Tests/Tests/ExampleTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ import XCTest

final class ExampleTests: XCTestCase {
func testExample1() throws {
Box([10, 20, 5], center: .y)
Box([10, 20, 5])
.aligned(at: .centerY)
.rotated(y: -20°, z: 45°)
.assertEqual(toFile: "example1")
}
Expand Down
2 changes: 1 addition & 1 deletion Tests/Tests/SCAD/example4.scad

Large diffs are not rendered by default.

0 comments on commit 2e58dcc

Please sign in to comment.