<commit_before>//
//  FunnelSerieSpec.swift
//  SwiftyEcharts
//
//  Created by <NAME> on 12/07/2017.
//  Copyright © 2017 com.pluto-y. All rights reserved.
//

import Quick
import Nimble
@testable import SwiftyEcharts

class FunnelSerieSpec: QuickSpec {
    override func spec() {
        let ascendingSort = FunnelSerie.Sort.ascending
        let descendingSort = FunnelSerie.Sort.descending
        
        describe("For FunnelSerie.Sort") {
            let ascendingString = "ascending"
            let descendingString = "descending"
            it("needs to check the jsonString") {
                expect(ascendingSort.jsonString).to(equal(ascendingString.jsonString))
                expect(descendingSort.jsonString).to(equal(descendingString.jsonString))
            }
        }
        
        let labelLineShowValue = false
        let labelLineLengthValue: Float = 0.512
        let 
        
        describe("For FunnelSerie.LabelLineContent") { 
            
        }
    }
}<commit_msg>test: Add test case for `FunnelSerie.LabelLineContent`<commit_after>//
//  FunnelSerieSpec.swift
//  SwiftyEcharts
//
//  Created by <NAME> on 12/07/2017.
//  Copyright © 2017 com.pluto-y. All rights reserved.
//

import Quick
import Nimble
@testable import SwiftyEcharts

class FunnelSerieSpec: QuickSpec {
    override func spec() {
        let ascendingSort = FunnelSerie.Sort.ascending
        let descendingSort = FunnelSerie.Sort.descending
        
        describe("For FunnelSerie.Sort") {
            let ascendingString = "ascending"
            let descendingString = "descending"
            it("needs to check the jsonString") {
                expect(ascendingSort.jsonString).to(equal(ascendingString.jsonString))
                expect(descendingSort.jsonString).to(equal(descendingString.jsonString))
            }
        }
        
        let labelLineShowValue = false
        let labelLineLengthValue: Float = 0.512
        let labelLineLineStyleValue = LineStyle(
            .opacity(0.62),
            .width(0.22)
        )
        
        let normalLabelLineContent = FunnelSerie.LabelLineContent()
        normalLabelLineContent.show = labelLineShowValue
        normalLabelLineContent.length = labelLineLengthValue
        normalLabelLineContent.lineStyle = labelLineLineStyleValue
        
        describe("For FunnelSerie.LabelLineContent") { 
            it("needs to check the jsonString") {
                let resultDic: [String: Jsonable] = [
                    "show": labelLineShowValue,
                    "length": labelLineLengthValue,
                    "lineStyle": labelLineLineStyleValue
                ]
                
                expect(normalLabelLineContent.jsonString).to(equal(resultDic.jsonString))
            }
            
            it("needs to check the Enumable") {
                let labelLineContentByEnums = FunnelSerie.LabelLineContent(
                    .show(labelLineShowValue),
                    .length(labelLineLengthValue),
                    .lineStyle(labelLineLineStyleValue)
                )
                
                expect(labelLineContentByEnums.jsonString).to(equal(normalLabelLineContent.jsonString))
            }
        }
    }
}
{'fraction_non_alphanumeric': 0.08289676425269646, 'fraction_numerical': 0.011710323574730355, 'mean_word_length': 1.9589790337283501, 'pattern_counts': {'":': 3, '<': 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': '4430020', 'n_tokens_mistral': 921, 'n_tokens_neox': 852, 'n_words': 164}