VimŸUnDoåï>ÒüGçk³4gîøÙ‡´$¸ ½ŸµÿR…t.42íæH»)}))\\\\NO–p_Ð ÿÿÿÿMìðMõ Ovar streamer = require('../streamer'), map = streamer.map, list = streamer.list5�_Ð ÿÿÿÿMìðMõ 5�_Ð ÿÿÿÿMìðNõ G/function test(assert, done, stream, expected) {5�_Ð ÿÿÿÿMìðQõ G7exports.function test(assert, done, stream, expected) {5�_ÐÿÿÿÿMìð\õ34exports['test map empty'] = function(assert, done) {9 var empty = list(), isNexted = false, isStopped = false4 var mapped = map(empty, function onEach(element) { isNexted = true }) test(assert, done, mapped, [])}5exports['test number map'] = function(assert, done) { var numbers = list(1, 2, 3, 4)N var doubled = map(numbers, function onElement(number) { return number * 2 })+ test(assert, done, doubled, [2, 4, 6, 8])}@exports['test map with async stream'] = function(assert, done) { function stream(next, stop) { var x = 5% setTimeout(function onTimeout() { if (!x) return stop() next(x--) setTimeout(onTimeout, 0) }, 0) }8 var mapped = map(stream, function(x) { return x + 1 })2 test(assert, done, mapped, [ 6, 5, 4, 3, 2, 1 ])}exports.test = function test(assert, done, stream, expected) {5�_Ð BÿÿÿÿN"§õ Eexports.test = function test(assert, done, stream, expected, error) {5�_Ð!ÿÿÿÿN"­õH assert.equal(error, undefined, 'stream is stopped without an error')5�_ÐCÿÿÿÿN"´õE assert.equal(error, reason, 'stream is stopped without an error')5�_Ð ÿÿÿÿN"Æ õ@ assert.equal(error, reason, 'stream is stopped as expected')5�_ÐÿÿÿÿN\øõõ5�_ÐÿÿÿÿN\ÿõ exports.function pipe(readers) {5�_Ð%ÿÿÿÿN]õ exports.function pipe(readers) {5�_Ð&%ÿÿÿÿN^põexports.read = function readõõ5�_Ð%'&ÿÿÿÿN^yõexports.read = function read()5�_Ð&('$ÿÿÿÿN^zõ$exports.read = function read(stream)5�_Ð')(&ÿÿÿÿN^{õ'exports.read = function read(stream) {}5�_Ð(*)ÿÿÿÿN^|õ  õ5�_Ð)+*ÿÿÿÿN^…õ! õ 5�_Ð*,+ ÿÿÿÿN^Œõ! stream()5�_Ð+-,ÿÿÿÿN^�õ! stream(function())5�_Ð,.-ÿÿÿÿN^”õ! stream(function(next, stop))5�_Ð-/.ÿÿÿÿN^•õ !! stream(function(next, stop) {})5�_Ð.0/#ÿÿÿÿN^œõ"&exports.read = function read(stream) {5�_Ð/10ÿÿÿÿN^ªõ" stream(function(next, stop) {5�_Ð021ÿÿÿÿN^´õ" stream(buffer.push.bind()5�_Ð132!ÿÿÿÿN^¶õ"! stream(buffer.push.bind(buffer)5�_Ð243ÿÿÿÿN^¹õ })5�_Ð354'ÿÿÿÿN^ºõ!' stream(buffer.push.bind(buffer), done5�_Ð4651ÿÿÿÿN^Íõ " õ !5�_Ð576)ÿÿÿÿNa#õ",exports.read = function read(stream, done) {5�_Ð6871ÿÿÿÿNa*õ"4exports.read = function read(stream, done, numebr) {5�_Ð798ÿÿÿÿNa2õ" var buffer = []5�_Ð8:9!ÿÿÿÿNa@õ #2 stream(buffer.push.bind(buffer), done || Object)5�_Ð9;:ÿÿÿÿNaFõ #+ stream(function onNext(), done || Object)5�_Ð:<;ÿÿÿÿNaFõ!#. stream(function onNext() {}, done || Object)5�_Ð;=<ÿÿÿÿNaNõ!$5�_Ð<>=ÿÿÿÿNaQõ % stream(function onNext() {5�_Ð=?> ÿÿÿÿNaSõ!%5�_Ð>@? ÿÿÿÿNaVõ!% if ()5�_Ð?A@ ÿÿÿÿNa\õ!% if (buffer.)5�_Ð@BA ÿÿÿÿNa_õ!% buffer.push()5�_ÐACB ÿÿÿÿNaaõ "& õ "%5�_ÐBDC!ÿÿÿÿNacõ "& if ()5�_ÐCED!ÿÿÿÿNakõ "& if (buffer.length)5�_ÐDFE!ÿÿÿÿNamõ "& return if (buffer.length)5�_ÐEGF!ÿÿÿÿNaoõ "& return buffer.length)5�_ÐFHG ÿÿÿÿNavõ "' õ "&5�_ÐGIH!%ÿÿÿÿNa€õ "'% // Interrupt reading if length is5�_ÐHJI1ÿÿÿÿNaˆõ'4exports.read = function read(stream, done, number) {5�_ÐIKJÿÿÿÿNaŒõ' number = number || Infinity5�_ÐJLKÿÿÿÿNaŽõ' length = number || Infinity5�_ÐKML"#ÿÿÿÿNa‘õ!#'# return buffer.length !== number5�_ÐLNM!ÿÿÿÿNa–õ "'& // Interrupt reading if length is 5�_ÐMON!3ÿÿÿÿNašõ "'3 // Interrupt reading if read desired length is 5�_ÐNPO!0ÿÿÿÿNa›õ "'0 // Interrupt reading if read desired length 5�_ÐOQPÿÿÿÿNa´õ ( õ '5�_ÐPRQ$ÿÿÿÿNa½õ#%( }, done || Object)5�_ÐQSR$ ÿÿÿÿNeõ#%( }, done)5�_ÐRTS$ÿÿÿÿNeõ#%( }, function onStop())5�_ÐSUT$ÿÿÿÿNeõ#%( }, function onStop(reason))5�_ÐTVU$ÿÿÿÿNeõ#&( }, function onStop(reason) {})5�_ÐUWV$ÿÿÿÿNe!õ$&* õ$&)5�_ÐVXW%ÿÿÿÿNe#õ$&* if ()5�_ÐWYX% ÿÿÿÿNe%õ$&* if (done)5�_ÐXZY%ÿÿÿÿNe'õ$&* if (done) done()5�_ÐY[ZÿÿÿÿNe,õ done = done || Object5�_ÐZ\[ÿÿÿÿNO–mõ)ˆ(typeof define === "undefined" ? function ($) { $(require, exports, module) } : define)(function (require, exports, module, undefined) {5�_Ð[\)ÿÿÿÿNO–oõ(})5�_Ð%ÿÿÿÿN]õ õ return {}5�_Ð ÿÿÿÿN]õ return { }5�_ÐÿÿÿÿN]õ õ stream: function stream()5�_ÐÿÿÿÿN]$õ' stream: function stream(next, stop)5�_Ð'ÿÿÿÿN]'õ* stream: function stream(next, stop) {}5�_Ð)ÿÿÿÿN])õ) stream: function stream(next, stop) { }5�_Ð ÿÿÿÿN]0õ  var value = {5�_Ð  ÿÿÿÿN]2õ  õ! value.next = next5�_Ð! ÿÿÿÿN]9õ! õ" value.stop = stop5�_Ð "!ÿÿÿÿN]Eõ" õ# return value5�_Ð!#"ÿÿÿÿN]Iõ5�_Ð"$#ÿÿÿÿN]Iõ5�_Ð#$ÿÿÿÿN]Jõ5�_Ð ÿÿÿÿMìðpõ ?exports.compa = function test(assert, done, stream, expected) {5�çª