-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add string to boolean conversion function in the standard definition
PiperOrigin-RevId: 657767450
- Loading branch information
1 parent
ea16dc4
commit 2a1fb74
Showing
5 changed files
with
66 additions
and
2 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 |
---|---|---|
@@ -1,4 +1,26 @@ | ||
Source: bool(true) | ||
=====> | ||
bindings: {} | ||
result: true | ||
result: true | ||
|
||
Source: bool('true') && bool('TRUE') && bool('True') && bool('t') && bool('1') | ||
=====> | ||
bindings: {} | ||
result: true | ||
|
||
Source: bool('false') || bool('FALSE') || bool('False') || bool('f') || bool('0') | ||
=====> | ||
bindings: {} | ||
result: false | ||
|
||
Source: bool('TrUe') | ||
=====> | ||
bindings: {} | ||
error: evaluation error: Type conversion error from 'string' to 'bool': [TrUe] | ||
error_code: BAD_FORMAT | ||
|
||
Source: bool('FaLsE') | ||
=====> | ||
bindings: {} | ||
error: evaluation error: Type conversion error from 'string' to 'bool': [FaLsE] | ||
error_code: BAD_FORMAT |
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