File tree Expand file tree Collapse file tree 4 files changed +9
-6
lines changed
src/compression/runlength Expand file tree Collapse file tree 4 files changed +9
-6
lines changed Original file line number Diff line number Diff line change 22var gulp = require ( 'gulp' ) ,
33 shell = require ( 'gulp-shell' ) ,
44 jshint = require ( 'gulp-jshint' ) ,
5- jasmine = require ( 'gulp-jasmine' ) ;
5+ jasmine = require ( 'gulp-jasmine' ) ,
6+ stylish = require ( 'jshint-stylish' ) ;
67
78gulp . task ( 'jsdoc' , shell . task ( [
89 './node_modules/.bin/jsdoc -c ./doc-config.json' ,
@@ -11,12 +12,13 @@ gulp.task('jsdoc', shell.task([
1112gulp . task ( 'lint' , function ( ) {
1213 return gulp . src ( [ './src/**/*.js' ] , [ './test/**/*.js' ] )
1314 . pipe ( jshint ( ) )
14- . pipe ( jshint . reporter ( 'default' ) ) ;
15+ . pipe ( jshint . reporter ( stylish ) )
16+ . pipe ( jshint . reporter ( 'fail' ) ) ;
1517} ) ;
1618
1719gulp . task ( 'test' , function ( ) {
1820 return gulp . src ( 'test/**/*.spec.js' )
1921 . pipe ( jasmine ( ) ) ;
2022} ) ;
2123
22- gulp . task ( 'build' , [ 'lint' , 'test' ] ) ;
24+ gulp . task ( 'build' , [ 'lint' , 'test' ] ) ;
Original file line number Diff line number Diff line change 1111 "gulp-jasmine" : " ^1.0.1" ,
1212 "gulp-jshint" : " ^1.9.0" ,
1313 "gulp-shell" : " ^0.2.11" ,
14- "jsdoc" : " 3.3.0-alpha13"
14+ "jsdoc" : " 3.3.0-alpha13" ,
15+ "jshint-stylish" : " ^1.0.0"
1516 },
1617 "scripts" : {
1718 "test" : " echo \" Error: no test specified\" && exit 1"
Original file line number Diff line number Diff line change 11/**
22 * Run-length encoding.
3- * The idea of this algorithm is to remove the usless zeros and
3+ * The idea of this algorithm is to remove the usless zeros and
44 * give us representation of string in binary which in which the
55 * zeros will be stripped and replaced with their count.
66 */
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ var bfs = require('../../../src/graphs/searching/bfs').bfs;
1313describe ( 'BFS' , function ( ) {
1414
1515 it ( 'should work with empty graph' , function ( ) {
16- expect ( bfs ( [ ] , 0 , 0 ) ) . toEqual ( [ 1 ] ) ;
16+ expect ( bfs ( [ ] , 0 , 0 ) ) . toEqual ( [ 0 ] ) ;
1717 } ) ;
1818
1919 it ( 'should return the correct output when used with\
You can’t perform that action at this time.
0 commit comments