Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 10 additions & 6 deletions five.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@
five.jackson = function() {
return ['Jackie','Tito','Jermaine','Marlon','Michael'];
};

five.members = function() {
return ['Sean Conlon', 'Ritchie Neville', 'Scott Robinson', 'Jason \'J\' Brown', 'Abz Love'];
};
Expand All @@ -159,7 +159,7 @@
five.singles = function() {
return ['Slam Dunk (Da Funk)', 'When the Lights Go Out', 'Got the Feelin\'', 'Everybody Get Up', 'It\'s the Things You Do', 'Until the Time Is Through', 'If Ya Gettin\' Down', 'Keep On Movin\'', 'Don\'t Wanna Let You Go', 'We Will Rock You', 'Let\'s Dance', 'Closer to Me', 'Rock the Party', 'I Wish It Could Be Christmas Everyday'];
}

five.fiveFiveFive = function() {
return 'Interstella 5555: The 5tory of the 5ecret 5tar 5ystem';
}
Expand All @@ -184,16 +184,20 @@
return five() + " bad boys with the power to rock you"
}

five.beethoven = function() {
return "Dun dun dun DUUUNNNNN!";
};

five.async = function(callback) {
process.nextTick(function() {
callback(null, five());
});
};

five.r = function () { return '£5'; };

five.euro = function() { return '5€' };

five.dollar = function() { return '$5' };

five.rot = function(word) {
Expand All @@ -213,11 +217,11 @@
};

five.oclock = function() { return '🕔'; };

five.oclockSomewhere = function() { return '🍺'; };

five.guys = function() { return '🍔'; };

five.bucks = function() { return '$' + five() + '.00'; };

five.valueOf = five;
Expand Down
2 changes: 2 additions & 0 deletions test.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,8 @@ assert.equal(five.luniz(), 'I Got 5 on It', 'A Luniz five should be the song tit

assert.equal(five.funk(), '5 bad boys with the power to rock you', 'A funked five should be a group of bad boys with the power to rock you');

assert.equal(five.beethoven(), 'Dun dun dun DUUUNNNNN!', "Beethoven's fifth symphony starts with four famous notes (ironic!)");

assert.equal(true, five.isFive(five()));
assert.equal(false, five.isFive(10));

Expand Down