<commit_before>//
//  PathTests.swift
//  PathTools
//
//  Created by <NAME> on 6/10/16.
//
//

import XCTest
@testable import PathTools

class PathTests: XCTestCase {

    func testInit() {
        let _ = Path()
    }
    
    func testMoveTo() {
        let path = Path()
        path.move(to: CGPoint.zero)
        XCTAssertEqual(path.count, 1)
    }
    
    func testMoveToLineTo() {
        let path = Path()
        path.move(to: CGPoint.zero)
        path.addLine(to: CGPoint.zero)
        XCTAssertEqual(path.count, 2)
    }
    
    func testCGPathInit() {
        let path = Path()
        let _ = path.cgPath
    }
    
    func testInitWithCGRect() {
        let rect = CGRect(origin: CGPoint.zero, size: CGSize.zero)
        let _ = Path.rectangle(rectangle: rect)
    }
    
    func testFluentInterface() {
        let _ = Path()
            .move(to: CGPoint.zero)
            .addLine(to: CGPoint.zero)
            .addQuadCurve(to: CGPoint.zero, controlPoint: CGPoint.zero)
            .addCurve(
                to: CGPoint.zero,
                controlPoint1: CGPoint.zero,<commit_msg>Clean up tests re: unused result of Path methods<commit_after>//
//  PathTests.swift
//  PathTools
//
//  Created by <NAME> on 6/10/16.
//
//

import XCTest
@testable import PathTools

class PathTests: XCTestCase {

    func testInit() {
        let _ = Path()
    }
    
    func testMoveTo() {
        let path = Path()
            .move(to: CGPoint.zero)
        XCTAssertEqual(path.count, 1)
    }
    
    func testMoveToLineTo() {
        let path = Path()
            .move(to: CGPoint.zero)
            .addLine(to: CGPoint.zero)
        XCTAssertEqual(path.count, 2)
    }
    
    func testCGPathInit() {
        let path = Path()
        let _ = path.cgPath
    }
    
    func testInitWithCGRect() {
        let rect = CGRect(origin: CGPoint.zero, size: CGSize.zero)
        let _ = Path.rectangle(rectangle: rect)
    }
    
    func testFluentInterface() {
        let _ = Path()
            .move(to: CGPoint.zero)
            .addLine(to: CGPoint.zero)
            .addQuadCurve(to: CGPoint.zero, controlPoint: CGPoint.zero)
            .addCurve(
                to: CGPoint.zero,
                controlPoint1: CGPoint.zero,
{'fraction_non_alphanumeric': 0.11427301022676745, 'fraction_numerical': 0.007114273010226767, 'mean_word_length': 1.720677146311971, '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': '3925914', 'n_tokens_mistral': 779, 'n_tokens_neox': 740, 'n_words': 157}