Skip to content

Commit

Permalink
Remove -c flag from --model-interface-only command
Browse files Browse the repository at this point in the history
  • Loading branch information
cyderize committed Dec 2, 2024
1 parent 8f7307e commit 4976cd8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ export class Model {
return new Promise((resolve, reject) => {
const config = { ...cfg };
const { worker, runCount } = this._run(
["-c", "--model-interface-only"],
["--model-interface-only"],
config.options
);
const errors = [];
Expand Down
2 changes: 1 addition & 1 deletion src/node.js
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ export class Model {
}
interface(cfg) {
const config = { ...cfg };
const proc = this._run(["-c", "--model-interface-only"], config.options);
const proc = this._run(["--model-interface-only"], config.options);
const errors = [];
let iface = null;
proc.on("error", (e) => errors.push(e));
Expand Down
2 changes: 1 addition & 1 deletion src/tests.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ module.exports.commonTests = (MiniZinc) => {
test("Basic compile", async () => {
const model = new MiniZinc.Model();
model.addString("var 1..3: x;");
const fzn = await model.compile();
const fzn = await model.compile({ solver: "gecode" });
expect(fzn).toMatch(
/var\s+1\s*\.\.\s*3\s*:\s*x\s*::\s*output_var\s*;\s*solve\s*satisfy;\s*/
);
Expand Down

0 comments on commit 4976cd8

Please sign in to comment.