MCPcopy Create free account
hub / github.com/ad-si/LuaCAD / sign_negative

Function sign_negative

crates/luacad/src/lua_engine.rs:2222–2231  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2220 #[test]
2221 fn require_luacad_is_a_noop() {
2222 let nodes = run_lua_scad("require('luacad')\nreturn cube(5)");
2223 let scad = generate_scad(&nodes);
2224 assert!(scad.contains("cube([5, 5, 5]"));
2225 }
2226
2227 #[test]
2228 fn require_luacad_returns_api_table() {
2229 let nodes = run_lua_scad("local L = require('luacad')\nreturn L.cube(5)");
2230 let scad = generate_scad(&nodes);
2231 assert!(scad.contains("cube([5, 5, 5]"));
2232 }
2233
2234 #[test]

Callers

nothing calls this directly

Calls 1

execute_luaFunction · 0.85

Tested by

no test coverage detected