Skip to content

Commit

Permalink
- Fixing #5
Browse files Browse the repository at this point in the history
- Jsdiff -> word instead of char
- 0.2.1 => npm publish
  • Loading branch information
mdunisch committed Aug 22, 2014
1 parent 35e2595 commit 281c442
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions exercises/5_count_the_comments/exercise.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ var verify = require("../../lib/verify.js"),

var run = {

json: [{ username: "tim", comment: "you doing a great job!" },
{ username: "tim", comment: "when you have new workshoppers?" },
json: [ { username: "tim", comment: "when you have new workshoppers?" },
{ username: "cat_lover", comment: "wtf? where are all the cats gone?" },
{ username: "max", comment: "where have you been on friday? we missed you!" },
{ username: "max", comment: "Do dont anwer anymore - why?" },
Expand All @@ -23,7 +22,7 @@ var run = {
},
{
"username": "tim",
"comment_count": 2
"comment_count": 1
}
]
};
Expand Down
2 changes: 1 addition & 1 deletion lib/verify.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ function line(n, sep) {

function diffsould(shouldbe, output) {

var diff = jsdiff.diffChars(output, shouldbe);
var diff = jsdiff.diffWords(output, shouldbe);
var string = "";

diff.forEach(function (part) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "lololodash",
"version": "0.2.0",
"version": "0.2.1",
"description": "A Set of Lo-Dash Javascript Exercises",
"main": "lololodash.js",
"repository": {
Expand Down

0 comments on commit 281c442

Please sign in to comment.