Skip to content

Commit 22b9112

Browse files
committed
datetime - yearly fix
1 parent 2c610bc commit 22b9112

File tree

6 files changed

+16
-16
lines changed

6 files changed

+16
-16
lines changed

datetime_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@ func ExampleDate() {
1010
Seed(11)
1111
fmt.Println(Date())
1212

13-
// Output: 2012-11-07 04:31:13.726582492 +0000 UTC
13+
// Output: 2013-11-07 04:31:13.726582492 +0000 UTC
1414
}
1515

1616
func ExampleFaker_Date() {
1717
f := New(11)
1818
fmt.Println(f.Date())
1919

20-
// Output: 2012-11-07 04:31:13.726582492 +0000 UTC
20+
// Output: 2013-11-07 04:31:13.726582492 +0000 UTC
2121
}
2222

2323
func TestDateLookup(t *testing.T) {
@@ -188,14 +188,14 @@ func ExampleYear() {
188188
Seed(11)
189189
fmt.Println(Year())
190190

191-
// Output: 2012
191+
// Output: 2013
192192
}
193193

194194
func ExampleFaker_Year() {
195195
f := New(11)
196196
fmt.Println(f.Year())
197197

198-
// Output: 2012
198+
// Output: 2013
199199
}
200200

201201
func BenchmarkYear(b *testing.B) {

internet_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -349,14 +349,14 @@ func ExampleFirefoxUserAgent() {
349349
Seed(11)
350350
fmt.Println(FirefoxUserAgent())
351351

352-
// Output: Mozilla/5.0 (Windows CE; en-US; rv:1.9.3.20) Gecko/2012-11-07 Firefox/36.0
352+
// Output: Mozilla/5.0 (Windows CE; en-US; rv:1.9.3.20) Gecko/2013-11-07 Firefox/36.0
353353
}
354354

355355
func ExampleFaker_FirefoxUserAgent() {
356356
f := New(11)
357357
fmt.Println(f.FirefoxUserAgent())
358358

359-
// Output: Mozilla/5.0 (Windows CE; en-US; rv:1.9.3.20) Gecko/2012-11-07 Firefox/36.0
359+
// Output: Mozilla/5.0 (Windows CE; en-US; rv:1.9.3.20) Gecko/2013-11-07 Firefox/36.0
360360
}
361361

362362
func BenchmarkFirefoxUserAgent(b *testing.B) {

payment_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ func ExampleCreditCard() {
101101

102102
// Output: American Express
103103
// 6376095989079994
104-
// 06/30
104+
// 06/31
105105
// 125
106106
}
107107

@@ -115,7 +115,7 @@ func ExampleFaker_CreditCard() {
115115

116116
// Output: American Express
117117
// 6376095989079994
118-
// 06/30
118+
// 06/31
119119
// 125
120120
}
121121

@@ -216,14 +216,14 @@ func ExampleCreditCardExp() {
216216
Seed(11)
217217
fmt.Println(CreditCardExp())
218218

219-
// Output: 11/34
219+
// Output: 11/35
220220
}
221221

222222
func ExampleFaker_CreditCardExp() {
223223
f := New(11)
224224
fmt.Println(f.CreditCardExp())
225225

226-
// Output: 11/34
226+
// Output: 11/35
227227
}
228228

229229
func BenchmarkCreditCardExp(b *testing.B) {

person_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ func ExamplePerson() {
410410
// elsareynolds@nichols.io
411411
// American Express
412412
// 4570938757201747
413-
// 11/28
413+
// 11/29
414414
// 205
415415
}
416416

@@ -473,7 +473,7 @@ func ExampleFaker_Person() {
473473
// elsareynolds@nichols.io
474474
// American Express
475475
// 4570938757201747
476-
// 11/28
476+
// 11/29
477477
// 205
478478
}
479479

sql_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ func ExampleSQL() {
2323

2424
fmt.Println(string(res))
2525

26-
// Output: INSERT INTO people (id, first_name, price, age, created_at) VALUES (1, 'Priscilla', 985.96, 20, '1925-07-08 17:32:57'),(2, 'Ramon', 639.32, 74, '2017-12-29 07:25:24');
26+
// Output: INSERT INTO people (id, first_name, price, age, created_at) VALUES (1, 'Priscilla', 985.96, 20, '1925-07-08 17:32:57'),(2, 'Ramon', 639.32, 74, '2018-12-29 07:25:24');
2727
}
2828

2929
func ExampleFaker_SQL() {
@@ -43,7 +43,7 @@ func ExampleFaker_SQL() {
4343

4444
fmt.Println(string(res))
4545

46-
// Output: INSERT INTO people (id, first_name, price, age, created_at) VALUES (1, 'Priscilla', 985.96, 20, '1925-07-08 17:32:57'),(2, 'Ramon', 639.32, 74, '2017-12-29 07:25:24');
46+
// Output: INSERT INTO people (id, first_name, price, age, created_at) VALUES (1, 'Priscilla', 985.96, 20, '1925-07-08 17:32:57'),(2, 'Ramon', 639.32, 74, '2018-12-29 07:25:24');
4747
}
4848

4949
func TestSQLJSON(t *testing.T) {

struct_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -649,12 +649,12 @@ func TestStructToDateTime(t *testing.T) {
649649
{
650650
name: "Simple",
651651
observed: datetime.Simple.String(),
652-
expected: "2012-11-07 04:31:13.726582492 +0000 UTC",
652+
expected: "2013-11-07 04:31:13.726582492 +0000 UTC",
653653
},
654654
{
655655
name: "Tag",
656656
observed: datetime.Tag.String(),
657-
expected: "1967-12-26 21:04:44 +0000 UTC",
657+
expected: "1968-12-26 21:04:44 +0000 UTC",
658658
},
659659
{
660660
name: "TagCustom",

0 commit comments

Comments
 (0)