VimŸUnDoåà½Ú£üUþ—‡Ó\æÃ¹‘‡øá›š® ³´²ý”6ß�x†> var source = delay([1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12])d¹¸¹¹·P�›Õ2_ÐÿÿÿÿP€—õ+-J assert.equal(called, 0, 'take does not invokes until result is reduced')õ&(, var actual = take(source, function(item) {õ#%-exports['test take all'] = function(assert) {õ J assert.equal(called, 0, 'take does not invokes until result is reduced')õ, var actual = take(source, function(item) {õ.exports['test take none'] = function(assert) {õJ assert.equal(called, 0, 'take does not invokes until result is reduced')õ , var actual = take(source, function(item) {õ )exports['test take'] = function(assert) {õ into = $.into, take = $.take5�_ÐÿÿÿÿP ü>õ2var $ = require('../core'),5�_Ð#ÿÿÿÿP ü@õ2#var takeWhile = require('../core'),5�_Ð+ÿÿÿÿP üCõ3õ25�_ÐÿÿÿÿP üGõ3var into = require()5�_ÐÿÿÿÿP üGõ3var into = require('')5�_Ð$ÿÿÿÿP üKõ3$var into = require('../accumulator')5�_Ð ÿÿÿÿP üOõ* into = $.into, takeWhile = $.takeWhile5�_Ð ,ÿÿÿÿPƒ�•õ2,var takeWhile = require('../core').takeWhile5�_Ð  ÿÿÿÿPƒ�˜õ2"var takeWhile = require('../core')5�_Ð  ÿÿÿÿPƒ�™õ2"var takeWhile = require('../core")5�_Ð ÿÿÿÿPƒ��õ2(var takeWhile = require('../take-while")5�_Ð  ÿÿÿÿPƒ� õ2)var into = require('../accumulator').into5�_Ð #ÿÿÿÿPƒ�¢õ2)var into = require("../accumulator').into5�_ÐÿÿÿÿPƒ�¥õ2var into = require("../into5�_Ð ÿÿÿÿPƒ�©õ 2.exports['test takeWhile'] = function(assert) {5�_Ð ÿÿÿÿPƒ�ªõ 2.exports["test takeWhile'] = function(assert) {5�_ÐÿÿÿÿPƒ�­õ2O assert.equal(called, 0, 'takeWhile does not invokes until result is reduced')5�_ÐMÿÿÿÿPƒ�¯õ2O assert.equal(called, 0, "takeWhile does not invokes until result is reduced')5�_Ð<ÿÿÿÿPƒ�°õ2> assert.deepEqual(into(actual), [ 1, 2 ], 'items were taken')5�_Ð+ÿÿÿÿPƒ�²õ2> assert.deepEqual(into(actual), [ 1, 2 ], 'items were taken")5�_Ð>ÿÿÿÿPƒ�µõ2@ assert.equal(called, 3, 'taker called until it returns false')5�_ÐÿÿÿÿPƒ�¶õ2@ assert.equal(called, 3, 'taker called until it returns false")5�_Ð+ÿÿÿÿPƒ�¹õ2? assert.deepEqual(into(actual), [ 1, 2 ], 'can be re-reduced')5�_Ð=ÿÿÿÿPƒ�»õ2? assert.deepEqual(into(actual), [ 1, 2 ], "can be re-reduced')5�_ÐÿÿÿÿPƒ�¿õ23exports['test takeWhile none'] = function(assert) {5�_ÐÿÿÿÿPƒ�Èõ23exports["test takeWhile none'] = function(assert) {5�_ÐÿÿÿÿPƒ�Òõ 2O assert.equal(called, 0, 'takeWhile does not invokes until result is reduced')5�_ÐMÿÿÿÿPƒ�Õõ 2O assert.equal(called, 0, "takeWhile does not invokes until result is reduced')5�_Ð 8ÿÿÿÿPƒ�Öõ!2: assert.deepEqual(into(actual), [], '0 items were taken')5�_Ð  %ÿÿÿÿPƒ�Øõ!2: assert.deepEqual(into(actual), [], '0 items were taken")5�_Ð! !ÿÿÿÿPƒ�Ùõ "2. assert.equal(called, 1, 'taker called once')5�_Ð "!!,ÿÿÿÿPƒ�Ûõ "2. assert.equal(called, 1, "taker called once')5�_Ð!#"$ÿÿÿÿPƒ�çõ#%22exports['test takeWhile all'] = function(assert) {5�_Ð"$#$ÿÿÿÿPƒ�ëõ#%22exports["test takeWhile all'] = function(assert) {5�_Ð#%$,ÿÿÿÿPƒ�îõ+-2O assert.equal(called, 0, 'takeWhile does not invokes until result is reduced')5�_Ð$&%,MÿÿÿÿPƒ�ðõ+-2O assert.equal(called, 0, "takeWhile does not invokes until result is reduced')5�_Ð%'&-CÿÿÿÿPƒ�òõ,.2E assert.deepEqual(into(actual), [ 1, 2, 3 ], 'all items were taken')5�_Ð&('-.ÿÿÿÿPƒ�öõ,.2E assert.deepEqual(into(actual), [ 1, 2, 3 ], 'all items were taken")5�_Ð')(.4ÿÿÿÿPƒ�÷õ-/26 assert.equal(called, 3, 'taker called on each item')5�_Ð(*).ÿÿÿÿPƒ�ú õ-/26 assert.equal(called, 3, 'taker called on each item")5�_Ð)+*2 ÿÿÿÿPƒ�þõ1 require('test').run(exports)5�_Ð*,+2ÿÿÿÿPƒ� õ1 require("test').run(exports)5�_Ð+-,ÿÿÿÿPƒ�õ2 'use strict';5�_Ð,.- ÿÿÿÿPƒ� õ2 "use strict';5�_Ð-/.ÿÿÿÿPˆ‹šõ'/* vim:set ts=2 sw=2 sts=2 expandtab */5�_Ð.0/ÿÿÿÿPˆ‹šõM/*jshint asi: true undef: true es5: true node: true browser: true devel: true5�_Ð/10 ÿÿÿÿPˆ‹œ õ8 forin: true latedef: false globalstrict: true*/5�_Ð021-ÿÿÿÿPŠü�õ-<0õ-//5�_Ð132;ÿÿÿÿPŠýõ:V=5�_Ð243UÿÿÿÿPŠþõTcW5�_Ð354SÿÿÿÿPŠþtõTcfõSVeõSUd5�_Ð465ÿÿÿÿvPŠþÔõ tõs5�_Ð576 ÿÿÿÿ vPŠþÖõ 5�_Ð6876ÿÿÿÿ66vPŠþîõkm* var actual = take["while"](function(n) {õ\^* var actual = take["while"](function(n) {õOQ* var actual = take["while"](function(n) {õBD* var actual = take["while"](function(n) {õ57* var actual = take["while"](function(n) {5�_Ð798SÿÿÿÿSSvPŠþôõRTy }, [1, 2, 3, 4, 5, 6, 7])5�_Ð8:9PÿÿÿÿSSvPŠþùõOQy& var actual = takeWhile(function(n) {5�_Ð9;:SÿÿÿÿSSvPŠþüõRTy }, )5�_Ð:<;FÿÿÿÿFF+v+PŠÿõEGy- }, [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12])5�_Ð;=<FÿÿÿÿFF+v+PŠÿõEGy }, )5�_Ð<>=CÿÿÿÿFF+v+PŠÿõBDy& var actual = takeWhile(function(n) {5�_Ð=?>WÿÿÿÿFF+v+PŠÿ õVW complete()5�_Ð>@?_ÿÿÿÿ__2v2PŠÿõ^`x4 }, delay([1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]))5�_Ð?A@_ÿÿÿÿ__2v2PŠÿõ^`x },)5�_Ð@BA[ÿÿÿÿ__2v2PŠÿõ[]y õ[]x5�_ÐACB]ÿÿÿÿ``2v2PŠÿõ\^y& var actual = takeWhile(function(n) {5�_ÐBDCdÿÿÿÿ``2v2PŠÿ!õcd complete()5�_ÐCEDnÿÿÿÿnn0v0PŠÿ'õmox2 }, concat([1, 2, 3, 4, 5], error(boom), [6, 7]))5�_ÐDFEnÿÿÿÿnn0v0PŠÿ'õmox }, )5�_ÐEGFjÿÿÿÿnn0v0PŠÿ)õjly õjlx5�_ÐFHGlÿÿÿÿoo0v0PŠÿ-õkmy& var actual = takeWhile(function(n) {5�_ÐGIH:ÿÿÿÿoo0v0PŠÿHõ:<zõ:<y5�_ÐHJI; ÿÿÿÿpp0v0PŠÿLõ:<z assert()5�_ÐIKJ;ÿÿÿÿpp0v0PŠÿNõ:<z assert(actual, [])5�_ÐJLK;ÿÿÿÿpp0v0PŠÿPõ:<z assert(actual, [], "")5�_ÐKML<ÿÿÿÿpp0v0PŠÿWõ;<6 expect(actual).to.be.empty().then(function(assert) {5�_ÐLNM<ÿÿÿÿoo0v0PŠÿWõ;<. assert.equal(called, 0, "nothing to take")5�_ÐMON<ÿÿÿÿnn0v0PŠÿWõ;< complete()5�_ÐNRO<ÿÿÿÿmm0v0PŠÿXõ;< })5�_ÐOSPR@ ÿÿÿÿll0v0PŠÿmõ?AvO var actual = takeWhile([1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], function(n) {5�_ÐRTS6 ÿÿÿÿll0v0PŠÿtõ57v& var actual = takeWhile(function(n) {5�_ÐSUT9ÿÿÿÿll0v0PŠÿxõ:< var actual = concatõ9<w õ9;v5�_ÐTVU;ÿÿÿÿnn0v0PŠÿõ;= lazy)õ:=x var actual = concat()5�_ÐUWV<ÿÿÿÿoo0v0PŠÿ‰õ;=y lazy())5�_ÐVXW<ÿÿÿÿoo0v0PŠÿ‰õ;=y lazy() {})5�_ÐWYX<ÿÿÿÿoo0v0PŠÿ�õ;=y! lazy() { })5�_ÐXZY<$ÿÿÿÿoo0v0PŠÿ’õ;=y+ lazy(function()) { })5�_ÐY[Z<'ÿÿÿÿoo0v0PŠÿ”õ;=y* lazy(function() { })5�_ÐZ\[<8ÿÿÿÿoo0v0PŠÿ›õ;=y8 lazy(function() { return called })5�_Ð[]\ÿÿÿÿoo0v0PŠÿÀõzõy5�_Ð\^]ÿÿÿÿqq0v0PŠÿÁõ5�_Ð]_^?ÿÿÿÿpp0v0PŠÿÉõ>@z2 assert(actual, [], "nothing to take from empty")5�_Ð^`_?1ÿÿÿÿpp0v0PŠÿÌõ>@z3 assert(actual, [0], "nothing to take from empty")5�_Ð_a`5ÿÿÿÿpp0v0PŠÿ×õ46z=exports["test take.while on empty"] = test(function(assert) {5�_Ð`baBÿÿÿÿpp0v0PŠÿÙõACz4exports["test take.while"] = test(function(assert) {5�_ÐacbGÿÿÿÿ<=9v<PŠÿäõHL| õGJ{ õGIz5�_Ðbdc<ÿÿÿÿ<=9v<PŠÿíõ<> õ<>~5�_Ðced=ÿÿÿÿ<>9v<PŠÿ÷õ<> ""5�_Ðdfe=ÿÿÿÿ<>9v<PŠÿøõ<> "|"5�_Ðegf@ÿÿÿÿ<>9v<PŠÿú õ?AA assert(actual, [0], "nothing to take from empty no calls to f")5�_ÐfhgJÿÿÿÿ<>9v<P‹õJL€ õJL5�_ÐgihKÿÿÿÿ<>9v<P‹õJL€ ""5�_Ðhji=ÿÿÿÿ<>9v<P‹õ<>€ "|",5�_Ðikj=ÿÿÿÿ<>9v<P‹õ<>€ "k",5�_Ðjlk@ÿÿÿÿ<>9v<P‹ õ?A€F assert(actual, ["|", 0], "nothing to take from empty no calls to f")5�_ÐkmlKÿÿÿÿ<>9v<P‹ õJL€ "x"5�_ÐlnmO+ÿÿÿÿ<>9v<P‹õNP€E assert(actual, [1, 2, 3, 4, 5, 6, 7, 8, 9]).then(function(assert) {5�_ÐmonO.ÿÿÿÿ<>9v<P‹õNP€I assert(actual, [1, 2, 3, 4, 5, 6, 7, 8, 9, ""]).then(function(assert) {5�_ÐnpoO0ÿÿÿÿ<>9v<P‹õNP€J assert(actual, [1, 2, 3, 4, 5, 6, 7, 8, 9, "x"]).then(function(assert) {5�_ÐoqpONÿÿÿÿ<>9v<P‹õNP€N assert(actual, [1, 2, 3, 4, 5, 6, 7, 8, 9, "x", 10]).then(function(assert) {5�_ÐprqPÿÿÿÿ<>9v<P‹õNQ€6 assert(actual, [1, 2, 3, 4, 5, 6, 7, 8, 9, "x", 10],"called until returned false")õOQ€; assert.equal(called, 10, "called until returned false")5�_ÐqsrQÿÿÿÿ<>9v<P‹ õPQ complete()5�_ÐrtsQÿÿÿÿ<>9v<P‹"õPQ })5�_ÐsutSÿÿÿÿ<>9v<P‹,õRT~8exports["test take.while end"] = test(function(assert) {5�_ÐtvuSÿÿÿÿ<>9v<P‹0!õRT~8exports["test take while end"] = test(function(assert) {5�_ÐuwvU ÿÿÿÿ<>9v<P‹4"õTV~= var actual = takeWhile([1, 2, 3, 4, 5, 6, 7], function(n) {5�_ÐvxwXÿÿÿÿJL9v;P‹9õY^€ õX[ õXZ~5�_Ðwyx_%ÿÿÿÿJL9v;P‹@õ^`ƒ? assert(actual, [1, 2, 3, 4, 5, 6, 7]).then(function(assert) {5�_Ðxzy_(ÿÿÿÿJL9v;P‹Aõ^`ƒC assert(actual, [1, 2, 3, 4, 5, 6, 7, ""]).then(function(assert) {5�_Ðy{z_*ÿÿÿÿJL9v;P‹Bõ^`ƒD assert(actual, [1, 2, 3, 4, 5, 6, 7, "x"]).then(function(assert) {5�_Ðz|{_GÿÿÿÿJL9v;P‹Dõ^`ƒG assert(actual, [1, 2, 3, 4, 5, 6, 7, "x", 7]).then(function(assert) {5�_Ð{}|`ÿÿÿÿJL9v;P‹Hõ_aƒ: assert.equal(called, 7, "called until returned false")5�_Ð|~}aÿÿÿÿJL9v;P‹Lõ`a })5�_Ð}~`ÿÿÿÿJL9v;P‹Oõ_a‚' "called until returned false")5�_Ð~€`ÿÿÿÿJL9v;P‹Qõ_a‚& "takes until returned false")5�_Ð�€`$ÿÿÿÿJL9v;P‹T#õ_a‚& "takes until exhasted false")5�_Ѐ‚�f ÿÿÿÿJL9v;P‹`õeg‚. var actual = takeWhile(source, function(n) {5�_Ð�ƒ‚iÿÿÿÿJL9v;P‹bõik‚5�_Ђ„ƒjÿÿÿÿZ]v;P‹iõioƒ5�_Ѓ…„jÿÿÿÿZ]v;P‹kõik‡var actual = concat(source,5�_Є†…jÿÿÿÿZ]v;P‹m$õik‡ var actual = concat(source,5�_Ð…‡†p+ÿÿÿÿZ]v;P‹tõoq‡E assert(actual, [1, 2, 3, 4, 5, 6, 7, 8, 9]).then(function(assert) {5�_Іˆ‡p.ÿÿÿÿZ]v;P‹tõoq‡I assert(actual, [1, 2, 3, 4, 5, 6, 7, 8, 9, ""]).then(function(assert) {5�_Ї‰ˆp0ÿÿÿÿZ]v;P‹uõoq‡J assert(actual, [1, 2, 3, 4, 5, 6, 7, 8, 9, "x"]).then(function(assert) {5�_ÐˆŠ‰p5ÿÿÿÿp5qvP‹õoq‡N assert(actual, [1, 2, 3, 4, 5, 6, 7, 8, 9, "x", 10]).then(function(assert) {; assert.equal(called, 10, "called until returned false")5�_Љ‹Šp6ÿÿÿÿp5pOvP‹�õor†U assert(actual, [1, 2, 3, 4, 5, 6, 7, 8, 9, "x", 10], "called until returned false")5�_ЊŒ‹rÿÿÿÿp5pOvP‹…%õqr })5�_Ћ�Œtÿÿÿÿp5pOvP‹‡õst5�_ÐŒŽ�tÿÿÿÿp5pOvP‹ˆ&õst5�_Ð��Žw ÿÿÿÿp5pOvP‹�'õvx„. var actual = takeWhile(source, function(n) {5�_ÐŽ��w ÿÿÿÿp5pOvP‹‘õwy„5�_Ð�‘�xÿÿÿÿp5pOvP‹’õwx5�_Ð�’‘zÿÿÿÿp5pOvP‹“õz|… õz|„5�_Б“’{ÿÿÿÿp5pOvP‹žõz|… var recovered = capture()5�_Ð’”“{+ÿÿÿÿp5pOvP‹¤õz|…, var recovered = capture(taken, function())5�_Г•”{-ÿÿÿÿp5pOvP‹¤õz}…/ var recovered = capture(taken, function() {})5�_Д–•t(ÿÿÿÿp5pOvP‹§õsu†Iexports["test error propagation in take.while"] = test(function(assert) {5�_Е—–t#ÿÿÿÿp5pOvP‹©(õsu†Iexports["test error propagation in take while"] = test(function(assert) {5�_Ж˜—{%ÿÿÿÿp5pOvP‹{ õ{}‡ õ{}†5�_З™˜{*ÿÿÿÿp5pOvP‹{õz|‡- var recovered = capture(taken, function() {5�_Иš™| ÿÿÿÿp5pOvP‹{)õ{}‡ return 5�_Й›š~ÿÿÿÿp5pOvP‹{õ~€ˆõ~€‡5�_К�› ÿÿÿÿp5pOvP‹{õ~€ˆ assert()5�_Лžœ�€ÿÿÿÿp5pOvP‹{"õ~€G assert(actual, 1, 2, 3, 4, 5).and.error(boom).then(function(assert) {õ~€ˆ assert(actual, )61, 2, 3, 4, 5).and.error(boom).then(function(assert) {õ�ˆO expect(actual).to.have(1, 2, 3, 4, 5).and.error(boom).then(function(assert) {5�_Ð�Ÿžÿÿÿÿp5pOvP‹{'õ~€‡H assert(actual, [1, 2, 3, 4, 5).and.error(boom).then(function(assert) {5�_О Ÿ-ÿÿÿÿp5pOvP‹{)õ~€‡J assert(actual, [1, 2, 3, 4, 5, ).and.error(boom).then(function(assert) {5�_П¡ %ÿÿÿÿ%=v=P‹{0õ~€‡> assert(actual, [1, 2, 3, 4, 5, boom).then(function(assert) {5�_Р¢¡%ÿÿÿÿ%=v=P‹{1õ~€‡% assert(actual, [1, 2, 3, 4, 5, boom5�_С£¢0ÿÿÿÿ%=v=P‹{5õ~€‡1 assert(actual, [1, 2, 3, 4, 5, boom.message, ""5�_Т¤£2ÿÿÿÿ%=v=P‹{7õ~€‡2 assert(actual, [1, 2, 3, 4, 5, boom.message, "x"5�_У¥¤5ÿÿÿÿ%=v=P‹{9õ~€‡5 assert(actual, [1, 2, 3, 4, 5, boom.message, "x", 55�_Ф¦¥6ÿÿÿÿ%=v=P‹{;õ~€‡6 assert(actual, [1, 2, 3, 4, 5, boom.message, "x", 5,5�_Ð¥§¦€ÿÿÿÿ%=v=P‹{>õ~€‡7 assert(actual, [1, 2, 3, 4, 5, boom.message, "x", 5],"called until error")õ�‡1 assert.equal(called, 5, "called until error")5�_Ц¨§€ÿÿÿÿ%=v=P‹{Aõ€ complete()5�_Ч©¨€ÿÿÿÿ%=v=P‹{A*õ€ })5�_Шª©|ÿÿÿÿ%=v=P‹{Eõ|~„5�_Щ«ª}ÿÿÿÿ€%€=v=P‹{Gõ|~„ })õ|}5�_Ъ¬«}ÿÿÿÿ%=v=P‹{Hõ}… õ}„5�_Ы­¬~ÿÿÿÿ€%€=v=P‹{Qõ~€ )õ}€… var actual = concat()5�_Ь®­ÿÿÿÿ�%�=v=P‹{Wõ~€† "")5�_Э¯®ÿÿÿÿ�%�=v=P‹{Xõ� lazy)õ~�† "x")5�_Ю°¯€ÿÿÿÿ‚%‚=v=P‹{Zõ�‡ lazy())5�_Я±°€%ÿÿÿÿ‚%‚=v=P‹{\õ�‡' lazy(function()))5�_а²±€'ÿÿÿÿ‚%‚=v=P‹{]+õ�‡* lazy(function() {}))5�_б³²cÿÿÿÿ‚%‚=v=P‹{{,õbd‡Dexports["test take.while on async stream"] = test(function(assert) {5�_в´³7ÿÿÿÿ‚%‚=v=P‹{�õ68‡& var source = takeWhile(function(n) {5�_гµ´:ÿÿÿÿ‚%‚=v=P‹{„-õ9;‡ }, [])5�_д¶µÿÿÿÿP‹”³.õvar error = require("../error")5�_е·¶u-ÿÿÿÿP‹”ºõtv†; var source = concat([1, 2, 3, 4, 5], error(boom), [6, 7])5�_ж¸·u,ÿÿÿÿP‹”¼2õtv†5 var source = concat([1, 2, 3, 4, 5], boom), [6, 7])5�_з¹¸dÿÿÿÿP�›Õõce†8 var source = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12])5�_и¹d8ÿÿÿÿP�›Ö1õce†7 var source = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]5�_Л�œ€ÿÿÿÿp5pOvP‹{õ�ˆ61, 2, 3, 4, 5).and.error(boom).then(function(assert) {õ~�ˆ8 1, 2, 3, 4, 5).and.error(boom).then(function(assert) {5�_ÐOQRPEEÿÿÿÿll0v0PŠÿaõDFv- assert(actual, [1, 2, 3, 4, 5, 6, 7, 8, 9],5�_ÐPQFÿÿÿÿll0v0PŠÿgõEGv"called until returned false")õDGv- assert(actual, [1, 2, 3, 4, 5, 6, 7, 8, 9], "called until returned false")5�çª