diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..7fa5768 --- /dev/null +++ b/build.sh @@ -0,0 +1 @@ +mblf wordFactList.mblf out.bf && sed '0,/\./s//ÿ/' out.bf > quine.bf diff --git a/package.json b/package.json index 481bdf8..aa4cdac 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "test": "test" }, "scripts": { - "build": "mblf wordFactList.mblf out.bf", + "build": "./build.sh", "test": "node test/wordFactList.js" }, "repository": { diff --git a/test/wordFactList.js b/test/wordFactList.js index c97f28f..1a98a22 100644 --- a/test/wordFactList.js +++ b/test/wordFactList.js @@ -2,6 +2,6 @@ const assert = require('assert') const fs = require('fs') -fs.readFile("out.bf", (_, output) => { - assert.equal(output, "<+[-<+]-.<<<<<<<[.>]") +fs.readFile("quine.bf", (_, output) => { + assert.equal(output, "<+[-<+]-ÿ<<<<<<<[.>]") })