icrowley / fake

Fake data generator for Go (Golang)
MIT License
595 stars 80 forks source link

Fix suffixes usage in JobTitle function #20

Closed jespino closed 6 years ago

jespino commented 6 years ago

Based on how works forgery and the forgery data. The current behavior is to generate JobTitle with #{N} on it sometimes.

example:

package main

import (
    "fake"
    "fmt"
)

func main() {
    fmt.Println(fake.JobTitle())
    fmt.Println(fake.JobTitle())
    fmt.Println(fake.JobTitle())
    fmt.Println(fake.JobTitle())
    fmt.Println(fake.JobTitle())
    fmt.Println(fake.JobTitle())
    fmt.Println(fake.JobTitle())
    fmt.Println(fake.JobTitle())
}

Expected result:

VP Sales
Cost Accountant
Programmer Analyst I
Senior Developer
Environmental Tech
Environmental Tech
Technical Writer
Statistician II

Current result:

VP Sales
Cost Accountant
Programmer Analyst #{N}
Senior Developer
Environmental Tech
Environmental Tech
Technical Writer
Statistician #{N}
corpix commented 6 years ago

Awesome, thank you!