8000 fix: Add coverage check and more samples for OpenSCAD by nbacquey · Pull Request #867 · tweag/topiary · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

fix: Add coverage check and more samples for OpenSCAD #867

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Feb 5, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,12 @@ This name should be decided amongst the team before the release.
### Removed
- <Removed features>

-->

### Fixed
- <Bug fixes>
- [#867](https://github.com/tweag/topiary/pull/867) Enable coverage check and add code samples for OpenSCAD

<!-->

### Security
- <Vulnerabilities>
Expand Down
3 changes: 3 additions & 0 deletions topiary-cli/tests/sample-tester.rs
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,9 @@ fn coverage_tester() {
#[cfg(feature = "ocamllex")]
coverage_test("ocamllex.mll");

#[cfg(feature = "openscad")]
coverage_test("openscad.scad");

#[cfg(feature = "rust")]
coverage_test("rust.rs");

Expand Down
3 changes: 3 additions & 0 deletions topiary-cli/tests/samples/expected/openscad.scad
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ xx = [0:5]; // alternate for() loop range
$fn = 360; // special variable
E = 2.71828182845904523536028747135266249775724709369995; // constant
cond_var = "is_true" ? true : false;
let (a = 1, b = 2) {};

// ================================================================================
// Functions
Expand All @@ -29,6 +30,8 @@ function line(point1, point2, width = 1) =

eager = (function(z) identity)(4);

function null(a, b) = 0;

// ================================================================================
// Transformations
// ================================================================================
Expand Down
3 changes: 3 additions & 0 deletions topiary-cli/tests/samples/input/openscad.scad
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ xx = [0:5]; // alternate for() loop range
$fn = 360; // special variable
E = 2.71828182845904523536028747135266249775724709369995; // constant
cond_var = "is_true" ? true : false;
let (a = 1, b = 2,) {};

// ================================================================================
// Functions
Expand All @@ -27,6 +28,8 @@ function line(point1, point2, width = 1) =

eager = (function(z) identity)(4);

function null(a, b,) = 0;

// ================================================================================
// Transformations
// ================================================================================
Expand Down
0