<commit_before>// Copyright AudioKit. All Rights Reserved. Revision History at http://github.com/AudioKit/AudioKit/

import XCTest
@testable import AudioKit

class AKOperationTests: XCTestCase {

    func testDelay() {
        let operation = AKOperation.sineWave(frequency: 1.1, amplitude: 2.2)
        let delay = operation.delay(time: 1.2, feedback: 1.3)
        XCTAssertEqual(delay.sporth, "\"ak\" \"0\" gen_vals 1.1 2.2 sine 0 \"ak\" tset 0 \"ak\" tget 1.3 1.2 delay ")
    }
    
    func testSineWave() {
        let operation = AKOperation.sineWave(frequency: 1.1, amplitude: 2.2)
        XCTAssertEqual(operation.sporth, "1.1 2.2 sine ")
    }
}<commit_msg>Delay tests done, better string delimiters<commit_after>// Copyright AudioKit. All Rights Reserved. Revision History at http://github.com/AudioKit/AudioKit/

import XCTest
@testable import AudioKit

class AKOperationTests: XCTestCase {

    func testDelay() {
        let operation = AKOperation.sineWave(frequency: 1.1, amplitude: 2.2)
        let delay = operation.delay(time: 1.2, feedback: 0.8)
        XCTAssertEqual(delay.sporth, #""ak" "0" gen_vals 1.1 2.2 sine 0 "ak" tset 0 "ak" tget 0.8 1.2 delay "#)
    }

    func testSineWave() {
        let operation = AKOperation.sineWave(frequency: 1.1, amplitude: 2.2)
        XCTAssertEqual(operation.sporth, "1.1 2.2 sine ")
    }

    func testSmoothDelay() {
        let operation = AKOperation.sineWave(frequency: 1.1, amplitude: 2.2)
        let delay = operation.smoothDelay(time: 1.1, feedback: 0.8, samples: 256, maximumDelayTime: 1.9)
        XCTAssertEqual(delay.sporth, #""ak" "0" gen_vals 1.1 2.2 sine 0 "ak" tset 0 "ak" tget 0.8 1.1 1.9 256.0 smoothdelay "#)
    }

    func testVariableDelay() {
        let operation = AKOperation.sineWave(frequency: 1.1, amplitude: 2.2)
        let delay = operation.variableDelay(time: 1.1, feedback: 0.8, maximumDelayTime: 1.9)
        XCTAssertEqual(delay.sporth, #""ak" "0" gen_vals 1.1 2.2 sine 0 "ak" tset 0 "ak" tget 0.8 1.1 1.9 vdelay "#)
    }
}
{'fraction_non_alphanumeric': 0.13043478260869565, 'fraction_numerical': 0.052865612648221344, 'mean_word_length': 3.017857142857143, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '6601855', 'n_tokens_mistral': 785, 'n_tokens_neox': 698, 'n_words': 194}