-
Notifications
You must be signed in to change notification settings - Fork 0
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
Feature/48 as operator #15
Merged
Merged
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
9121a8f
Moving old built-in 'as*()' to TypeCastingExpression test cases
ppaulweber 002b1df
TypeCastingExpression: fixed 'as Boolean' test cases
ppaulweber 61ff543
Description
ppaulweber 690cef2
TypeCastingExpression: updated Integer test cases
ppaulweber 83cca57
TypeCastingExpression: updated Bit test cases
ppaulweber 2a5e093
TypeCastingExpression: updated String test cases
ppaulweber 46d1ec8
TypeCastingExpression: fixed 'as' operator error code
ppaulweber 5bebff8
TypeCastingExpression: added error test cases
ppaulweber 9d3d905
TypeCastingExpression: removed 'old' casting built-in calls
ppaulweber 461c380
TypeCastingExpression: updated String test cases
ppaulweber 3a0caa9
TypeCastingExpression: updated Decimal test cases
ppaulweber 7e3bbfe
TypeCastingExpression: updated Rational test cases
ppaulweber 0b4d956
TypeCastingExpression: updated Enumeration test cases
ppaulweber d8ab287
TypeCastingExpression: added incorrect result type case
ppaulweber 923fac8
TypeCastingExpression: updated Integer as Bit unit tests
ppaulweber ade9b1b
TypeCastingExpression: fixed incorrect tuple error unit test
ppaulweber bac4162
TypeCastingExpression: fixed incorrect integer unit test
ppaulweber File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -51,5 +51,5 @@ rule main = | |
{ | ||
if N > 1 then | ||
N := N / 2 | ||
println( asString( N ) ) | ||
println( N as String ) | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
51 changes: 0 additions & 51 deletions
51
test/builtin/assert/error/false_with_msg_dynamic_content.casm
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -45,6 +45,5 @@ CASM init foo | |
|
||
rule foo = | ||
{ | ||
println( undef + asBit( 0, 10 ) ) | ||
|
||
println( undef + 0 as Bit'10 ) | ||
} |
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 |
---|---|---|
|
@@ -45,6 +45,5 @@ CASM init foo | |
|
||
rule foo = | ||
{ | ||
println( undef + asBit( 24, 44 ) ) | ||
|
||
println( undef + 24 as Bit'44 ) | ||
} |
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 |
---|---|---|
|
@@ -45,6 +45,5 @@ CASM init foo | |
|
||
rule foo = | ||
{ | ||
println( asBit( 0, 10 ) + undef ) | ||
|
||
println( 0 as Bit'10 + undef ) | ||
} |
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 |
---|---|---|
|
@@ -45,6 +45,5 @@ CASM init foo | |
|
||
rule foo = | ||
{ | ||
println( asBit( 24, 44 ) + undef ) | ||
|
||
println( 24 as Bit'44 + undef ) | ||
} |
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 |
---|---|---|
|
@@ -45,6 +45,5 @@ CASM init foo | |
|
||
rule foo = | ||
{ | ||
println( undef ) //@ ERROR( 1002 ) | ||
|
||
println( undef ) //@ ERROR( 1002 ) | ||
} |
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
This and the following print test cases are useless, they all tests the same ->
println(undef : Bit)
undef + something
is already covered by expression tests.This should be cleaned up in another PR please ;)
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.
I'm aware of the
print
test case problematic, there will be a major clean-up PR really soon, the change here is required due to the enforcement of the<expr> as <type>
syntax for type castings instead of theas<type>()
built-in callsThere 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.
see: sealangdotorg/sea#53