From 87b2b8369a7ceb4ad5430e5f429cd7a449ccb41e Mon Sep 17 00:00:00 2001 From: kgryte Date: Tue, 23 Jun 2020 23:52:47 -0700 Subject: [PATCH] Remove test file --- test/test.dist.js | 273 ---------------------------------------------- 1 file changed, 273 deletions(-) delete mode 100644 test/test.dist.js diff --git a/test/test.dist.js b/test/test.dist.js deleted file mode 100644 index 1a42deff4b1a..000000000000 --- a/test/test.dist.js +++ /dev/null @@ -1,273 +0,0 @@ -/** -* @license Apache-2.0 -* -* Copyright (c) 2018 The Stdlib Authors. -* -* Licensed under the Apache License, Version 2.0 (the "License"); -* you may not use this file except in compliance with the License. -* You may obtain a copy of the License at -* -* http://www.apache.org/licenses/LICENSE-2.0 -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -/* eslint-disable no-restricted-syntax */ - -'use strict'; - -// MODULES // - -var resolve = require( 'path' ).resolve; -var join = require( 'path' ).join; -var tape = require( 'tape' ); - - -// VARIABLES // - -var dirpath = resolve( __dirname, '..', 'dist' ); - - -// TESTS // - -tape( 'distributable files', function test( t ) { - t.ok( true, __filename ); - t.end(); -}); - -tape( 'project contains a distributable file containing datasets (minified)', function test( t ) { - // eslint-disable-next-line stdlib/no-dynamic-require - var bundle = require( join( dirpath, 'stdlib-datasets-tree.min.js' ) ); - t.equal( typeof bundle, 'object', 'main export is an object' ); - t.equal( typeof bundle.datasets.AFINN_111, 'function', 'is a function' ); - t.equal( typeof bundle.datasets.AFINN_111(), 'object', 'returns expected value' ); // eslint-disable-line new-cap - t.end(); -}); - -tape( 'project contains a distributable file containing non-excluded datasets (minified)', function test( t ) { - // eslint-disable-next-line stdlib/no-dynamic-require - var bundle = require( join( dirpath, 'stdlib-datasets-tree-exclude.min.js' ) ); - t.equal( typeof bundle, 'object', 'main export is an object' ); - t.equal( typeof bundle.datasets.AFINN_111, 'function', 'is a function' ); - t.equal( typeof bundle.datasets.AFINN_111(), 'object', 'returns expected value' ); // eslint-disable-line new-cap - t.end(); -}); - -tape( 'project contains a distributable file containing the CMU pronouncing dictionary (minified)', function test( t ) { - // eslint-disable-next-line stdlib/no-dynamic-require - var bundle = require( join( dirpath, 'stdlib-datasets-cmudict.min.js' ) ); - t.equal( typeof bundle, 'object', 'main export is an object' ); - t.equal( typeof bundle.CMUDICT, 'function', 'is a function' ); - t.equal( typeof bundle.CMUDICT(), 'object', 'returns expected value' ); // eslint-disable-line new-cap - t.end(); -}); - -tape( 'project contains a distributable file containing emoji datasets (minified)', function test( t ) { - // eslint-disable-next-line stdlib/no-dynamic-require - var bundle = require( join( dirpath, 'stdlib-datasets-emoji.min.js' ) ); - t.equal( typeof bundle, 'object', 'main export is an object' ); - t.equal( typeof bundle.EMOJI, 'function', 'is a function' ); - t.equal( typeof bundle.EMOJI(), 'object', 'returns expected value' ); // eslint-disable-line new-cap - t.end(); -}); - -tape( 'project contains a distributable file containing the FiveThirtyEight FFQ dataset (minified)', function test( t ) { - // eslint-disable-next-line stdlib/no-dynamic-require - var bundle = require( join( dirpath, 'stdlib-datasets-fivethirtyeight-ffq.min.js' ) ); - t.equal( typeof bundle, 'object', 'main export is an object' ); - t.equal( typeof bundle.FIVETHIRTYEIGHT_FFQ, 'function', 'is a function' ); - t.equal( typeof bundle.FIVETHIRTYEIGHT_FFQ(), 'object', 'returns expected value' ); // eslint-disable-line new-cap - t.end(); -}); - -tape( 'project contains a distributable file containing images (minified)', function test( t ) { - // eslint-disable-next-line stdlib/no-dynamic-require - var bundle = require( join( dirpath, 'stdlib-datasets-img.min.js' ) ); - t.equal( typeof bundle, 'object', 'main export is an object' ); - t.equal( typeof bundle.IMG_ACANTHUS_MOLLIS, 'function', 'is a function' ); - t.equal( typeof bundle.IMG_ACANTHUS_MOLLIS(), 'object', 'returns expected value' ); // eslint-disable-line new-cap - t.end(); -}); - -tape( 'project contains a distributable file containing Moby Dick (minified)', function test( t ) { - // eslint-disable-next-line stdlib/no-dynamic-require - var bundle = require( join( dirpath, 'stdlib-datasets-moby-dick.min.js' ) ); - t.equal( typeof bundle, 'object', 'main export is an object' ); - t.equal( typeof bundle.MOBY_DICK, 'function', 'is a function' ); - t.equal( typeof bundle.MOBY_DICK(), 'object', 'returns expected value' ); // eslint-disable-line new-cap - t.end(); -}); - -tape( 'project contains a distributable file containing prime numbers (minified)', function test( t ) { - // eslint-disable-next-line stdlib/no-dynamic-require - var bundle = require( join( dirpath, 'stdlib-datasets-primes-100k.min.js' ) ); - t.equal( typeof bundle, 'object', 'main export is an object' ); - t.equal( typeof bundle.PRIMES_100K, 'function', 'is a function' ); - t.equal( typeof bundle.PRIMES_100K(), 'object', 'returns expected value' ); // eslint-disable-line new-cap - t.end(); -}); - -tape( 'project contains a distributable file containing SOTU (minified)', function test( t ) { - // eslint-disable-next-line stdlib/no-dynamic-require - var bundle = require( join( dirpath, 'stdlib-datasets-sotu.min.js' ) ); - t.equal( typeof bundle, 'object', 'main export is an object' ); - t.equal( typeof bundle.SOTU, 'function', 'is a function' ); - t.equal( typeof bundle.SOTU(), 'object', 'returns expected value' ); // eslint-disable-line new-cap - t.end(); -}); - -tape( 'project contains a distributable file containing Spam Assassin (minified)', function test( t ) { - // eslint-disable-next-line stdlib/no-dynamic-require - var bundle = require( join( dirpath, 'stdlib-datasets-spam-assassin.min.js' ) ); - t.equal( typeof bundle, 'object', 'main export is an object' ); - t.equal( typeof bundle.SPAM_ASSASSIN, 'function', 'is a function' ); - t.equal( typeof bundle.SPAM_ASSASSIN(), 'object', 'returns expected value' ); // eslint-disable-line new-cap - t.end(); -}); - -tape( 'project contains a distributable file containing Suthaharan\'s multi-hop sensor network data (minified)', function test( t ) { - // eslint-disable-next-line stdlib/no-dynamic-require - var bundle = require( join( dirpath, 'stdlib-datasets-suthaharan-multi-hop-sensor-network.min.js' ) ); - t.equal( typeof bundle, 'object', 'main export is an object' ); - t.equal( typeof bundle.SUTHAHARAN_MULTI_HOP_SENSOR_NETWORK, 'function', 'is a function' ); - t.equal( typeof bundle.SUTHAHARAN_MULTI_HOP_SENSOR_NETWORK(), 'object', 'returns expected value' ); // eslint-disable-line new-cap - t.end(); -}); - -tape( 'project contains a distributable file containing Suthaharan\'s single-hop sensor network data (minified)', function test( t ) { - // eslint-disable-next-line stdlib/no-dynamic-require - var bundle = require( join( dirpath, 'stdlib-datasets-suthaharan-single-hop-sensor-network.min.js' ) ); - t.equal( typeof bundle, 'object', 'main export is an object' ); - t.equal( typeof bundle.SUTHAHARAN_SINGLE_HOP_SENSOR_NETWORK, 'function', 'is a function' ); - t.equal( typeof bundle.SUTHAHARAN_SINGLE_HOP_SENSOR_NETWORK(), 'object', 'returns expected value' ); // eslint-disable-line new-cap - t.end(); -}); - -tape( 'project contains a distributable file exposing a "flat" namespace (unminified)', function test( t ) { - // eslint-disable-next-line stdlib/no-dynamic-require - var bundle = require( join( dirpath, 'stdlib-flat.js' ) ); - t.equal( typeof bundle, 'object', 'main export is an object' ); - t.equal( typeof bundle.base, 'object', 'has member' ); - t.equal( bundle.base.sin( 3.14 ), 0.0015926529164868282, 'returns expected value' ); - t.end(); -}); - -tape( 'project contains a distributable file exposing a "flat" namespace (minified)', function test( t ) { - // eslint-disable-next-line stdlib/no-dynamic-require - var bundle = require( join( dirpath, 'stdlib-flat.min.js' ) ); - t.equal( typeof bundle, 'object', 'main export is an object' ); - t.equal( typeof bundle.base, 'object', 'has member' ); - t.equal( bundle.base.sin( 3.14 ), 0.0015926529164868282, 'returns expected value' ); - t.end(); -}); - -tape( 'project contains a distributable file containing "flat" namespace help texts (minified)', function test( t ) { - // eslint-disable-next-line stdlib/no-dynamic-require - var bundle = require( join( dirpath, 'stdlib-flat-help.min.js' ) ); - t.equal( typeof bundle, 'object', 'main export is an object' ); - t.equal( typeof bundle.help, 'function', 'has member' ); - t.equal( typeof bundle.help( 'base.sin' ), 'string', 'returns a string' ); - t.end(); -}); - -tape( 'project contains a distributable file containing iterator utilities (unminified)', function test( t ) { - // eslint-disable-next-line stdlib/no-dynamic-require - var bundle = require( join( dirpath, 'stdlib-iter-flat.js' ) ); - t.equal( typeof bundle, 'object', 'main export is an object' ); - t.equal( typeof bundle.iterErf, 'function', 'has member' ); - t.end(); -}); - -tape( 'project contains a distributable file containing iterator utilities (minified)', function test( t ) { - // eslint-disable-next-line stdlib/no-dynamic-require - var bundle = require( join( dirpath, 'stdlib-iter-flat.min.js' ) ); - t.equal( typeof bundle, 'object', 'main export is an object' ); - t.equal( typeof bundle.iterErf, 'function', 'has member' ); - t.end(); -}); - -tape( 'project contains a distributable file containing plotting functions (unminified)', function test( t ) { - // eslint-disable-next-line stdlib/no-dynamic-require - var bundle = require( join( dirpath, 'stdlib-plot-flat.js' ) ); - t.equal( typeof bundle, 'object', 'main export is an object' ); - t.equal( typeof bundle.plot, 'function', 'has member' ); - t.end(); -}); - -tape( 'project contains a distributable file containing plotting functions (minified)', function test( t ) { - // eslint-disable-next-line stdlib/no-dynamic-require - var bundle = require( join( dirpath, 'stdlib-plot-flat.min.js' ) ); - t.equal( typeof bundle, 'object', 'main export is an object' ); - t.equal( typeof bundle.plot, 'function', 'has member' ); - t.end(); -}); - -tape( 'project contains a distributable file containing base special mathematical functions (unminified)', function test( t ) { - // eslint-disable-next-line stdlib/no-dynamic-require - var bundle = require( join( dirpath, 'stdlib-math-base-special-flat.js' ) ); - t.equal( typeof bundle, 'object', 'main export is an object' ); - t.equal( typeof bundle.base, 'object', 'has member' ); - t.equal( bundle.base.sin( 3.14 ), 0.0015926529164868282, 'returns expected value' ); - t.end(); -}); - -tape( 'project contains a distributable file containing base special mathematical functions (minified)', function test( t ) { - // eslint-disable-next-line stdlib/no-dynamic-require - var bundle = require( join( dirpath, 'stdlib-math-base-special-flat.min.js' ) ); - t.equal( typeof bundle, 'object', 'main export is an object' ); - t.equal( typeof bundle.base, 'object', 'has member' ); - t.equal( bundle.base.sin( 3.14 ), 0.0015926529164868282, 'returns expected value' ); - t.end(); -}); - -tape( 'project contains a distributable file for REPL functionality (minified)', function test( t ) { - // eslint-disable-next-line stdlib/no-dynamic-require - var bundle = require( join( dirpath, 'stdlib-repl.min.js' ) ); - t.equal( typeof bundle, 'object', 'main export is an object' ); - t.equal( typeof bundle.repl, 'function', 'is a function' ); - t.end(); -}); - -tape( 'project contains a distributable file containing base statistical distribution functions (unminified)', function test( t ) { - // eslint-disable-next-line stdlib/no-dynamic-require - var bundle = require( join( dirpath, 'stdlib-stats-base-dists-flat.js' ) ); - t.equal( typeof bundle, 'object', 'main export is an object' ); - t.equal( typeof bundle.base, 'object', 'has member' ); - t.equal( typeof bundle.base.dists.normal.pdf( 0.5, 0.0, 1.0 ), 'number', 'returns expected value' ); - t.end(); -}); - -tape( 'project contains a distributable file containing base statistical distribution functions (minified)', function test( t ) { - // eslint-disable-next-line stdlib/no-dynamic-require - var bundle = require( join( dirpath, 'stdlib-stats-base-dists-flat.min.js' ) ); - t.equal( typeof bundle, 'object', 'main export is an object' ); - t.equal( typeof bundle.base, 'object', 'has member' ); - t.equal( typeof bundle.base.dists.normal.pdf( 0.5, 0.0, 1.0 ), 'number', 'returns expected value' ); - t.end(); -}); - -tape( 'project contains a distributable file exposing a "tree" namespace (unminified)', function test( t ) { - // eslint-disable-next-line stdlib/no-dynamic-require - var bundle = require( join( dirpath, 'stdlib-tree.js' ) ); - t.equal( typeof bundle, 'object', 'main export is an object' ); - t.equal( typeof bundle.math, 'object', 'has member' ); - t.equal( typeof bundle.math.base, 'object', 'has member' ); - t.equal( typeof bundle.math.base.special, 'object', 'has member' ); - t.equal( bundle.math.base.special.sin( 3.14 ), 0.0015926529164868282, 'returns expected value' ); - t.end(); -}); - -tape( 'project contains a distributable file exposing a "tree" namespace (minified)', function test( t ) { - // eslint-disable-next-line stdlib/no-dynamic-require - var bundle = require( join( dirpath, 'stdlib-tree.min.js' ) ); - t.equal( typeof bundle, 'object', 'main export is an object' ); - t.equal( typeof bundle.math, 'object', 'has member' ); - t.equal( typeof bundle.math.base, 'object', 'has member' ); - t.equal( typeof bundle.math.base.special, 'object', 'has member' ); - t.equal( bundle.math.base.special.sin( 3.14 ), 0.0015926529164868282, 'returns expected value' ); - t.end(); -});