<commit_before>/*!
* Flocking - Creative audio synthesis for the Web!
* http://github.com/colinbdclark/flocking
*
* Copyright 2015, <NAME>
* Dual licensed under the MIT or GPL Version 2 licenses.
*/

/*global require, module, test*/

var fluid = fluid || require("infusion"),
    flock = fluid.registerNamespace("flock");

(function () {
    "use strict";

    fluid.registerNamespace("flock.test.blit");

    flock.init();

    // TODO: Need to add a means by which cases can add
    // additional assertions to the test case.
    // e.g. asserting that all the continuous waveform ugens
    // do in fact produce continuous waveforms.
    flock.test.blit.baseTests = [
        {
            name: "440 freq",
            def: {
                freq: 440
            },
            assertions: [
                {
                    funcName: "flock.test.arrayNotNaN",
                    msg: "There should be no NaN values"
                },
                {
                    funcName: "flock.test.arrayWithinRange",
                    args: [-1, 1],
                    msg: "The array should be within the appropriate amplitude range."
                }
            ]
        },
        {
            name: "10000 freq",
            def: {
                freq: 10000
            },
            assertions: [
                {
                    funcName: "flock.test.arrayNotNaN",
                    msg: "There should be no NaN values"
                },
                {
                    funcName: "flock.test.arrayWithinRange",
                    args: [-1, 1],
                    msg: "The array should be within the appropriate amplitude range."
                }
            ]
        },
        {
            name: "freq modulated",
            def: {<commit_msg>Fixes failing flock.ugen.tri unit test.<commit_after>/*!
* Flocking - Creative audio synthesis for the Web!
* http://github.com/colinbdclark/flocking
*
* Copyright 2015, <NAME>
* Dual licensed under the MIT or GPL Version 2 licenses.
*/

/*global require, module, test*/

var fluid = fluid || require("infusion"),
    flock = fluid.registerNamespace("flock");

(function () {
    "use strict";

    fluid.registerNamespace("flock.test.blit");

    flock.init();

    // TODO: Need to add a means by which cases can add
    // additional assertions to the test case.
    // e.g. asserting that all the continuous waveform ugens
    // do in fact produce continuous waveforms.
    flock.test.blit.baseTests = [
        {
            name: "440 freq",
            def: {
                freq: 440
            },
            assertions: [
                {
                    funcName: "flock.test.arrayNotNaN",
                    msg: "There should be no NaN values"
                },
                {
                    funcName: "flock.test.arrayWithinRange",
                    args: [-1, 1],
                    msg: "The array should be within the appropriate amplitude range."
                }
            ]
        },
        {
            name: "10000 freq",
            def: {
                freq: 10000,
                leakRate: 0.15
            },
            assertions: [
                {
                    funcName: "flock.test.arrayNotNaN",
                    msg: "There should be no NaN values"
                },
                {
                    funcName: "flock.test.arrayWithinRange",
                    args: [-1, 1],
                    msg: "The array should be within the appropriate amplitude range."
                }
            ]
        },
        {
            name: "freq modulated",
            def: {
{'fraction_non_alphanumeric': 0.10054945054945055, 'fraction_numerical': 0.01456043956043956, 'mean_word_length': 1.2296387017758725, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4813419', 'n_tokens_mistral': 1026, 'n_tokens_neox': 907, 'n_words': 276}