-
Notifications
You must be signed in to change notification settings - Fork 289
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add missing phone_assertions.js file
Javscript and Markdown formatting Upgrade dataform cli version in package.json to 1.20.0
- Loading branch information
ddeleo
committed
Oct 12, 2021
1 parent
3f2d0fb
commit 7095eab
Showing
13 changed files
with
299 additions
and
210 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,20 +16,18 @@ const {generate_test} = unit_test_utils; | |
const {test_email_validity} = personal_info_assertions; | ||
const test_name = "test_email_assertion_test"; | ||
const test_cases = { | ||
/* | ||
Provide your own testing data following the structure | ||
<INPUT_TESTING_DATA> : "<EXPECTED OUTCOME>" | ||
For example, if a testing data has the <EXPECTED OUTCOME> to be TRUE, | ||
then the program will expect the custom data quality rules to also produce TRUE. | ||
Otherwise it will show that the custom data quality rules failed. | ||
*/ | ||
"ruinanliu@google.com" : "TRUE", | ||
"[email protected]" : "TRUE", | ||
"1736#$%.com" : "FALSE" | ||
/* | ||
Provide your own testing data following the structure | ||
<INPUT_TESTING_DATA> : "<EXPECTED OUTCOME>" | ||
For example, if a testing data has the <EXPECTED OUTCOME> to be TRUE, | ||
then the program will expect the custom data quality rules to also produce TRUE. | ||
Otherwise it will show that the custom data quality rules failed. | ||
*/ | ||
|
||
"someone@google.com": "TRUE", | ||
"[email protected]": "TRUE", | ||
"1736#$%.com": "FALSE" | ||
}; | ||
// The function below will generate the necessary SQL to run unit tests. | ||
generate_test(test_name, | ||
test_cases, | ||
test_email_validity); | ||
generate_test(test_name, test_cases, test_email_validity); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.