From 519c514092e98750fdc541b50361f9fe1544efb9 Mon Sep 17 00:00:00 2001 From: Ben Ogle Date: Wed, 17 Jul 2013 17:28:53 -0700 Subject: [PATCH] add a new sample with some comments --- spec/fixtures/sample-with-comments.js | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 spec/fixtures/sample-with-comments.js diff --git a/spec/fixtures/sample-with-comments.js b/spec/fixtures/sample-with-comments.js new file mode 100644 index 000000000..f23c07972 --- /dev/null +++ b/spec/fixtures/sample-with-comments.js @@ -0,0 +1,20 @@ +var quicksort = function () { + /* + this is a multiline comment + it is, I promise + */ + var sort = function(items) { + // This is a collection of + // single line comments. + // Wowza + if (items.length <= 1) return items; + var pivot = items.shift(), current, left = [], right = []; + while(items.length > 0) { + current = items.shift(); + current < pivot ? left.push(current) : right.push(current); + } + return sort(left).concat(pivot).concat(sort(right)); + }; + + return sort(Array.apply(this, arguments)); +}; \ No newline at end of file