From e07bdcf5b96f9d7fe816e8caf8e14632707757c1 Mon Sep 17 00:00:00 2001 From: Raymonzut <40148684+Raymonzut@users.noreply.github.com> Date: Mon, 18 Jan 2021 21:29:42 +0100 Subject: [PATCH] Add test for wordFactList --- package-lock.json | 13 +++++++++++++ package.json | 27 +++++++++++++++++++++++++++ test/wordFactList.js | 7 +++++++ 3 files changed, 47 insertions(+) create mode 100644 package-lock.json create mode 100644 package.json create mode 100644 test/wordFactList.js diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 0000000..53bd3b5 --- /dev/null +++ b/package-lock.json @@ -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==" + } + } +} diff --git a/package.json b/package.json new file mode 100644 index 0000000..481bdf8 --- /dev/null +++ b/package.json @@ -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" + } +} diff --git a/test/wordFactList.js b/test/wordFactList.js new file mode 100644 index 0000000..c97f28f --- /dev/null +++ b/test/wordFactList.js @@ -0,0 +1,7 @@ +#!/usr/bin/env node +const assert = require('assert') +const fs = require('fs') + +fs.readFile("out.bf", (_, output) => { + assert.equal(output, "<+[-<+]-.<<<<<<<[.>]") +})