Skip to content

Commit

Permalink
tests - update yearly tests
Browse files Browse the repository at this point in the history
  • Loading branch information
brianvoe committed Jan 9, 2024
1 parent e4f5beb commit 5481e9d
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 20 deletions.
4 changes: 2 additions & 2 deletions car_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ func ExampleCar() {
// Freestyle Fwd
// Automatic
// Passenger car mini
// 1991
// 1965
}

func ExampleFaker_Car() {
Expand All @@ -38,7 +38,7 @@ func ExampleFaker_Car() {
// Freestyle Fwd
// Automatic
// Passenger car mini
// 1991
// 1965
}

func BenchmarkCar(b *testing.B) {
Expand Down
4 changes: 2 additions & 2 deletions internet_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -493,14 +493,14 @@ func ExampleFirefoxUserAgent() {
Seed(11)
fmt.Println(FirefoxUserAgent())

// Output: Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10_9_10 rv:7.0) Gecko/1953-01-24 Firefox/36.0
// Output: Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10_9_10 rv:7.0) Gecko/1915-01-24 Firefox/36.0
}

func ExampleFaker_FirefoxUserAgent() {
f := New(11)
fmt.Println(f.FirefoxUserAgent())

// Output: Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10_9_10 rv:7.0) Gecko/1953-01-24 Firefox/36.0
// Output: Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10_9_10 rv:7.0) Gecko/1915-01-24 Firefox/36.0
}

func BenchmarkFirefoxUserAgent(b *testing.B) {
Expand Down
8 changes: 4 additions & 4 deletions payment_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ func ExampleCreditCard() {
// Output:
// UnionPay
// 4364599489953698
// 02/24
// 02/25
// 300
}

Expand All @@ -119,7 +119,7 @@ func ExampleFaker_CreditCard() {
// Output:
// UnionPay
// 4364599489953698
// 02/24
// 02/25
// 300
}

Expand Down Expand Up @@ -222,14 +222,14 @@ func ExampleCreditCardExp() {
Seed(11)
fmt.Println(CreditCardExp())

// Output: 06/30
// Output: 06/31
}

func ExampleFaker_CreditCardExp() {
f := New(11)
fmt.Println(f.CreditCardExp())

// Output: 06/30
// Output: 06/31
}

func BenchmarkCreditCardExp(b *testing.B) {
Expand Down
4 changes: 2 additions & 2 deletions person_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ func ExamplePerson() {
// [email protected]
// Maestro
// 39800889982276
// 01/29
// 01/30
// 932
}

Expand Down Expand Up @@ -309,7 +309,7 @@ func ExampleFaker_Person() {
// [email protected]
// Maestro
// 39800889982276
// 01/29
// 01/30
// 932
}

Expand Down
4 changes: 2 additions & 2 deletions sql_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ func ExampleSQL() {
fmt.Println(string(res))

// Output:
// INSERT INTO people (id, first_name, price, age, created_at) VALUES (1, 'Markus', 804.92, 21, '1989-01-30 07:58:01'),(2, 'Santino', 235.13, 40, '1926-07-07 22:25:40');
// INSERT INTO people (id, first_name, price, age, created_at) VALUES (1, 'Markus', 804.92, 21, '1989-01-30 07:58:01'),(2, 'Santino', 235.13, 40, '1919-07-07 22:25:40');
}

func ExampleFaker_SQL() {
Expand All @@ -46,7 +46,7 @@ func ExampleFaker_SQL() {
fmt.Println(string(res))

// Output:
// INSERT INTO people (id, first_name, price, age, created_at) VALUES (1, 'Markus', 804.92, 21, '1996-11-22 07:34:00'),(2, 'Anibal', 674.87, 60, '1973-01-03 11:07:53');
// INSERT INTO people (id, first_name, price, age, created_at) VALUES (1, 'Markus', 804.92, 21, '1901-11-22 07:34:00'),(2, 'Anibal', 674.87, 60, '2006-01-03 11:07:53');
}

func TestSQLJSON(t *testing.T) {
Expand Down
8 changes: 4 additions & 4 deletions struct_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -646,12 +646,12 @@ func TestStructToDateTime(t *testing.T) {
{
name: "Simple",
observed: datetime.Simple.String(),
expected: "1953-01-24 13:00:35.820738079 +0000 UTC",
expected: "1915-01-24 13:00:35.820738079 +0000 UTC",
},
{
name: "Tag",
observed: datetime.Tag.String(),
expected: "1902-02-10 22:06:24 +0000 UTC",
expected: "2023-02-10 22:06:24 +0000 UTC",
},
{
name: "TagCustom",
Expand All @@ -676,12 +676,12 @@ func TestStructToDateTime(t *testing.T) {
{
name: "PointerSimple",
observed: datetime.PointerSimple.String(),
expected: "1901-05-17 13:55:34.57634154 +0000 UTC",
expected: "1967-05-17 13:55:34.57634154 +0000 UTC",
},
{
name: "PointerTag",
observed: datetime.PointerTag.String(),
expected: "1949-06-03 07:35:07 +0000 UTC",
expected: "1902-06-03 07:35:07 +0000 UTC",
},
{
name: "PointerTagCustom",
Expand Down
8 changes: 4 additions & 4 deletions time_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ func ExampleDate() {
Seed(11)
fmt.Println(Date())

// Output: 1953-01-24 13:00:35.820738079 +0000 UTC
// Output: 1915-01-24 13:00:35.820738079 +0000 UTC
}

func ExampleFaker_Date() {
f := New(11)
fmt.Println(f.Date())

// Output: 1953-01-24 13:00:35.820738079 +0000 UTC
// Output: 1915-01-24 13:00:35.820738079 +0000 UTC
}

func TestDateLookup(t *testing.T) {
Expand Down Expand Up @@ -290,14 +290,14 @@ func ExampleYear() {
Seed(11)
fmt.Println(Year())

// Output: 1953
// Output: 1915
}

func ExampleFaker_Year() {
f := New(11)
fmt.Println(f.Year())

// Output: 1953
// Output: 1915
}

func BenchmarkYear(b *testing.B) {
Expand Down

0 comments on commit 5481e9d

Please sign in to comment.