oramics/dsp-kit

View on GitHub
packages/signal/test/buffer-test.js

Summary

Maintainability
A
0 mins
Test Coverage
/* eslint-disable comma-spacing */
const test = require('tst')
const assert = require('assert')
const _ = require('..')
const { fill } = require('dsp-array')

test('buffer', () => {
  test('loop', () => {
    var signal = _.loop([0, 1, 3])
    assert.deepEqual(fill(10, signal), [0,1,3,0,1,3,0,1,3,0])
  })
})