Add test for wordFactList

deprecated/mblf-compiler-nodejs
Raymonzut 3 years ago
parent e82c45c4d2
commit e07bdcf5b9
No known key found for this signature in database
GPG Key ID: 1E9BCC39EDD1DD53
  1. 13
      package-lock.json
  2. 27
      package.json
  3. 7
      test/wordFactList.js

13
package-lock.json generated

@ -0,0 +1,13 @@
{
"name": "BF",
"version": "1.0.0",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
"mblf-lang": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/mblf-lang/-/mblf-lang-1.0.1.tgz",
"integrity": "sha512-pCyq6smnrfzQkZn1c+jlUuojc/Gs/R9MApPY8KqjFoPGhV6Bx+UdFQSWXReWBAkg7ipbetYSaCSq9aGj7PvU4g=="
}
}
}

@ -0,0 +1,27 @@
{
"name": "BF",
"version": "1.0.0",
"description": "So instead of making yet another quine, which many already did before me, with greater conciseness then could be achieved in these few days,, it would be cool to spark new life into an already existing quine.",
"main": "index.js",
"directories": {
"test": "test"
},
"scripts": {
"build": "mblf wordFactList.mblf out.bf",
"test": "node test/wordFactList.js"
},
"repository": {
"type": "git",
"url": "git+https://github.com/MBLF-Project/Quine-stuff.git"
},
"keywords": [],
"author": "",
"license": "ISC",
"bugs": {
"url": "https://github.com/MBLF-Project/Quine-stuff/issues"
},
"homepage": "https://github.com/MBLF-Project/Quine-stuff#readme",
"dependencies": {
"mblf-lang": "^1.0.1"
}
}

@ -0,0 +1,7 @@
#!/usr/bin/env node
const assert = require('assert')
const fs = require('fs')
fs.readFile("out.bf", (_, output) => {
assert.equal(output, "<+[-<+]-.<<<<<<<[.>]")
})
Loading…
Cancel
Save