text:
import assert from "assert";
import ptake from "../../../src/neume/pattern/ptake";
import pseq from "../../../src/neume/pattern/pseq";

describe("neume/pattern/ptake(p, length)", () => {
  it("should create generator function that n items taken", () => {
    const p1 = pseq([ 1, 2, 3 ], Infinity);
    const iter = ptake(p1, 5)();

    assert.deepEqual(iter.next(), { value: 1, done: false });
    assert.deepEqual(iter.next(), { value: 2, done: false });
    assert.deepEqual(iter.next(), { value: 3, done: false });
    assert.deepEqual(iter.next(), { value: 1, done: false });
    assert.deepEqual(iter.next(), { value: 2, done: false });
    assert.deepEqual(iter.next(), { value: undefined, done: true });
  });

  it("default n is 1", () => {
    const p1 = pseq([ 1, 2, 3 ]);
    const iter = ptake(p1)();

    assert.deepEqual(iter.next(), { value: 1, done: false });
    assert.deepEqual(iter.next(), { value: undefined, done: true });
  });

  it("chain method", () => {
    const p1 = pseq([ 1, 2, 3 ], Infinity);
    const iter = p1.take(5)();

    assert.deepEqual(iter.next(), { value: 1, done: false });
    assert.deepEqual(iter.next(), { value: 2, done: false });
    assert.deepEqual(iter.next(), { value: 3, done: false });
    assert.deepEqual(iter.next(), { value: 1, done: false });
    assert.deepEqual(iter.next(), { value: 2, done: false });
    assert.deepEqual(iter.next(), { value: undefined, done: true });
  });
});


text:
<?php

    define("ENVIRONMENT", "development");

    define("ROOT", __DIR__);

    /* Load the configuration bootstrap file */
    require_once("config/config.php");

    /*Autoload the system classes */
    require_once("../reunion/vendor/autoload.php");

    $dispatcher = new Dispatcher();
    $dispatcher->handleEvent();

/*
    $app = new Silex/Application();

    $app->get("/ola", function(){
        return "olá mundo";
    });
*/
    exit;

    $app = new App();
    $app->run($config);

?>

redpajama_set_name: RedPajamaGithub