summaryrefslogtreecommitdiff
path: root/test/unit_tests/binaryConverter.test.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/unit_tests/binaryConverter.test.js')
-rw-r--r--test/unit_tests/binaryConverter.test.js36
1 files changed, 18 insertions, 18 deletions
diff --git a/test/unit_tests/binaryConverter.test.js b/test/unit_tests/binaryConverter.test.js
index b6fb503..109dee1 100644
--- a/test/unit_tests/binaryConverter.test.js
+++ b/test/unit_tests/binaryConverter.test.js
@@ -4,29 +4,29 @@ const math = require('mathjs');
//import BinaryConverter from 'binaryConverter';
describe('Test BinaryConversion module', () => {
-
- let testConverter;
- let testVector;
- let testInteger;
+
+ let testConverter;
+ let testVector;
+ let testInteger;
- beforeEach(() => {
- testConverter = new BinaryConverter(2);
- testInteger = 2;
- testVector = math.matrix([1, 0]);
- });
+ beforeEach(() => {
+ testConverter = new BinaryConverter(2);
+ testInteger = 2;
+ testVector = math.matrix([1, 0]);
+ });
- test('convert integer to binary array', () => {
- testConverter.integer = testInteger;
- expect(testConverter.inputActivation).toEqual(testVector);
- });
+ test('convert integer to binary array', () => {
+ testConverter.integer = testInteger;
+ expect(testConverter.inputActivation).toEqual(testVector);
+ });
- test('convert binary array to integer', () => {
- testConverter.inputActivation = testVector;
- expect(testConverter.integer).toEqual(testInteger);
- });
+ test('convert binary array to integer', () => {
+ testConverter.inputActivation = testVector;
+ expect(testConverter.integer).toEqual(testInteger);
+ });
- test.todo('Random array initializes correct integer');
+ test.todo('Random array initializes correct integer');
});