-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CT-1896 test correctly TreatValuesAsNull on BQ #1428
Conversation
@@ -52,8 +52,7 @@ public function testImportTreatValuesAsNull( | |||
return $row; | |||
}, $data); | |||
|
|||
$this->assertEqualsCanonicalizing($expectedData, $data); | |||
|
|||
$this->assertArraySameSorted($expectedData, $data, 0); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tady to nevidělo rozdíl mezi null a ''
@@ -98,7 +97,7 @@ public function treatValuesAsNullData(): Generator | |||
1 => [ | |||
0 => 31, | |||
1 => 'belarus', | |||
2 => '', | |||
2 => null, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tady byl špatně assert ale test procházal
@@ -109,6 +108,30 @@ public function treatValuesAsNullData(): Generator | |||
], | |||
], | |||
]; | |||
yield 'string' => [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nový case změny znaku 'b' za null
}; | ||
usort($expected, $comparison); | ||
usort($actual, $comparison); | ||
$this->assertSame($expected, $actual, $message); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nový assert dělá same ne equals
Jira: CT-1896
KBC: XXX
Before asking for review make sure that:
Checklist
Release