Skip to content

Commit

Permalink
Adds additional test for open range.
Browse files Browse the repository at this point in the history
  • Loading branch information
botic committed Feb 13, 2017
1 parent 9e08748 commit 0a38f4b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/ringo/utils/http_test.js
Expand Up @@ -318,6 +318,7 @@ exports.testHeadersMultipleNames = function() {
exports.testRangeParser = function() {
assert.throws(function() {http.parseRange("bytes=0-499", "bar");});

assert.deepEqual(http.parseRange("bytes=0-", 500), [[0,499]]);
assert.deepEqual(http.parseRange("bytes=0-499", 500), [[0,499]]);
assert.deepEqual(http.parseRange("bytes=0-500", 500), [[0,499]]);
assert.deepEqual(http.parseRange("bytes=0-1500", 500), [[0,499]]);
Expand Down

0 comments on commit 0a38f4b

Please sign in to comment.