forked from AudioKit/AudioKit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAKTableTests.swift
39 lines (32 loc) · 947 Bytes
/
AKTableTests.swift
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
//
// AKTableTests.swift
// AudioKitTestSuiteTests
//
// Created by Aurelius Prochazka, revision history on GitHub.
// Copyright © 2018 AudioKit. All rights reserved.
//
import AudioKit
import XCTest
class AKTableTests: AKTestCase {
func testReverseSawtooth() {
input = AKOscillator(waveform: AKTable(.reverseSawtooth))
output = input
AKTestMD5("5b4a1cdcd9864f80ad5163d7cbe3e01f")
}
func testSawtooth() {
input = AKOscillator(waveform: AKTable(.sawtooth))
output = input
AKTestMD5("429344b732d20f8e8c89379bd75147a3")
}
func testSine() {
input = AKOscillator(waveform: AKTable(.sine))
output = input
// This is just the usual tested sine wave
AKTestNoEffect()
}
func testTriangle() {
input = AKOscillator(waveform: AKTable(.triangle))
output = input
AKTestMD5("c533c2b5975c4817d1c54f5821779a8f")
}
}