feat: 초기 프로젝트 설정 및 룰.md 파일 추가

This commit is contained in:
2025-07-28 09:53:31 +09:00
commit 09a4d38512
8165 changed files with 1021855 additions and 0 deletions

26
api.hyungi.net/node_modules/lazy/test/take.js generated vendored Normal file
View File

@@ -0,0 +1,26 @@
var assert = require('assert');
var Lazy = require('..');
var expresso = expresso;
function range(i, j) {
var r = [];
for (;i<j;i++) r.push(i);
return r;
}
exports['take'] = function () {
var lazy = new Lazy;
var data = [];
var executed = 0;
lazy.take(6).join(function (xs) {
assert.deepEqual(xs, range(0,6));
executed++;
});
range(0,10).forEach(function (x) {
lazy.emit('data', x);
});
assert.equal(executed, 1, 'join executed incorrectly');
}