Skip to content

Commit

Permalink
add basic structure for tensorspace unit test (#52)
Browse files Browse the repository at this point in the history
  • Loading branch information
syt123450 committed Sep 26, 2018
1 parent 945c6e3 commit e86059d
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"presets": ["es2015"]
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"main": "build/tensorspace.module.js",
"scripts": {
"test": "mocha",
"build-beautify": "rollup -c",
"build": "rollup -c",
"build-uglify": "rollup -c && uglifyjs build/tensorspace.js -cm --preamble \"// https://github.com/syt123450/tensorspace/blob/master/LICENSE\" --output build/tensorspace.min.js",
"contributors:add": "all-contributors add",
"contributors:generate": "all-contributors generate"
Expand Down
1 change: 1 addition & 0 deletions test/mocha.opts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
--recursive --require babel-core/register
17 changes: 17 additions & 0 deletions test/unit/Layers.tests.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import { CenterLocator } from "../../src/utils/CenterLocator";
import chai from "chai"

describe('Test Conv2d', function () {

console.log(555);

it('Should has a 3d output shape', function () {

let outputDimension = 3;

console.log(777);

chai.expect( 3 ).to.equal(outputDimension);

});
});

0 comments on commit e86059d

Please sign in to comment.