diff --git a/complex/add.mjs b/complex/add.mjs index f43c883..9cefa0a 100644 --- a/complex/add.mjs +++ b/complex/add.mjs @@ -1,4 +1,4 @@ -import {numComplex} from './Complex.mjs' +import {numComplex} from './types/Complex.mjs' export const add = { '...Complex': [['self'], ref => addends => { diff --git a/complex/complex.mjs b/complex/complex.mjs index c8941fc..9d7f0c5 100644 --- a/complex/complex.mjs +++ b/complex/complex.mjs @@ -1,4 +1,4 @@ -import './Complex.mjs' +import './types/Complex.mjs' export const complex = { /* Very permissive for sake of proof-of-concept; would be better to diff --git a/complex/extendToComplex.mjs b/complex/extendToComplex.mjs index 65817a2..64f4736 100644 --- a/complex/extendToComplex.mjs +++ b/complex/extendToComplex.mjs @@ -1,4 +1,4 @@ -import './Complex.mjs' +import './types/Complex.mjs' import * as complex from './complex.mjs' /* Add all the complex implementations for functions already diff --git a/complex/negate.mjs b/complex/negate.mjs index ccf72a7..77dfb01 100644 --- a/complex/negate.mjs +++ b/complex/negate.mjs @@ -1,4 +1,4 @@ -import {numComplex} from './Complex.mjs' +import {numComplex} from './types/Complex.mjs' export const negate = { Complex: [['self'], ref => z => { /* need a "base case" to avoid infinite self-reference */ diff --git a/complex/Complex.mjs b/complex/types/Complex.mjs similarity index 100% rename from complex/Complex.mjs rename to complex/types/Complex.mjs diff --git a/package.json5 b/package.json5 index 517eefb..6c804ce 100644 --- a/package.json5 +++ b/package.json5 @@ -5,7 +5,7 @@ inclusion, avoiding factory functions.', main: 'index.js', scripts: { - test: 'npx mocha', + test: '!(find . | sort -f | uniq -i -c | grep -v " 1 ") && npx mocha', }, repository: { type: 'git',