Skip to content

Commit

Permalink
address - fix space between street name and street suffix
Browse files Browse the repository at this point in the history
  • Loading branch information
bvoelker committed Jun 16, 2020
1 parent 5593643 commit 8ac39ba
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions address.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ func Address() *AddressInfo {
func Street() (street string) {
switch randInt := randIntRange(1, 2); randInt {
case 1:
street = StreetNumber() + " " + StreetPrefix() + " " + StreetName() + StreetSuffix()
street = StreetNumber() + " " + StreetPrefix() + " " + StreetName() + " " + StreetSuffix()
case 2:
street = StreetNumber() + " " + StreetName() + StreetSuffix()
street = StreetNumber() + " " + StreetName() + " " + StreetSuffix()
}

return
Expand Down
6 changes: 3 additions & 3 deletions address_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ func ExampleAddress() {
fmt.Println(address.Country)
fmt.Println(address.Latitude)
fmt.Println(address.Longitude)
// Output: 364 East Rapidsborough, Rutherfordstad, New Jersey 36906
// 364 East Rapidsborough
// Output: 364 East Rapids borough, Rutherfordstad, New Jersey 36906
// 364 East Rapids borough
// Rutherfordstad
// New Jersey
// 36906
Expand All @@ -35,7 +35,7 @@ func BenchmarkAddress(b *testing.B) {
func ExampleStreet() {
Seed(11)
fmt.Println(Street())
// Output: 364 East Rapidsborough
// Output: 364 East Rapids borough
}

func BenchmarkStreet(b *testing.B) {
Expand Down
2 changes: 1 addition & 1 deletion faker_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ func Example() {
// Name: Markus Moen
// Email: alaynawuckert@kozey.biz
// Phone: 9948995369
// Address: 35300 South Roadshaven, Hilllville, Montana 30232
// Address: 35300 South Roads haven, Hilllville, Montana 30232
// BS: e-enable
// Beer Name: Weihenstephaner Hefeweissbier
// Color: MidnightBlue
Expand Down
2 changes: 1 addition & 1 deletion generate_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ func ExampleGenerate() {
fmt.Println(Generate("{shuffleints:[1,2,3]}"))
fmt.Println(Generate("{number:1,50}"))
fmt.Println(Generate("{shufflestrings:[key:value,int:string,1:2,a:b]}"))
// Output: Markus Moen ssn is 952284213 and lives at 599 New Cliffsstad
// Output: Markus Moen ssn is 952284213 and lives at 599 New Cliffs stad
// Arrival tour security.
// [1 3 2]
// 34
Expand Down
4 changes: 2 additions & 2 deletions json_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ func ExampleJSON_object() {
// "first_name": "Markus",
// "last_name": "Moen",
// "address": {
// "address": "4599 Daleton, Lake Carroll, Mississippi 90635",
// "street": "4599 Daleton",
// "address": "4599 Dale ton, Lake Carroll, Mississippi 90635",
// "street": "4599 Dale ton",
// "city": "Lake Carroll",
// "state": "Mississippi",
// "zip": "90635",
Expand Down
4 changes: 2 additions & 2 deletions person_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,8 @@ func ExamplePerson() {
// Associate
// Human
// Usability
// 99536 North Streamville, Rossieview, Hawaii 42591
// 99536 North Streamville
// 99536 North Stream ville, Rossieview, Hawaii 42591
// 99536 North Stream ville
// Rossieview
// Hawaii
// 42591
Expand Down

0 comments on commit 8ac39ba

Please sign in to comment.