Skip to content
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 17 commits into from
Nov 20, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion test/application/log2.casm
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,5 @@ rule main =
{
if N > 1 then
N := N / 2
println( asString( N ) )
println( N as String )
}
61 changes: 0 additions & 61 deletions test/builtin/as/decimal/boolean.casm

This file was deleted.

61 changes: 0 additions & 61 deletions test/builtin/as/decimal/floating.casm

This file was deleted.

80 changes: 0 additions & 80 deletions test/builtin/as/integer/00.casm

This file was deleted.

53 changes: 0 additions & 53 deletions test/builtin/as/string/bit.casm

This file was deleted.

51 changes: 0 additions & 51 deletions test/builtin/assert/error/false_with_msg_dynamic_content.casm

This file was deleted.

3 changes: 1 addition & 2 deletions test/builtin/print/print/03.casm
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,5 @@ CASM init foo

rule foo =
{
println( undef + asBit( 0, 10 ) )

println( undef + 0 as Bit'10 )
Copy link
Member

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 ;)

Copy link
Member Author

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 the as<type>() built-in calls

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

}
3 changes: 1 addition & 2 deletions test/builtin/print/print/04.casm
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,5 @@ CASM init foo

rule foo =
{
println( undef + asBit( 24, 44 ) )

println( undef + 24 as Bit'44 )
}
3 changes: 1 addition & 2 deletions test/builtin/print/print/13.casm
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,5 @@ CASM init foo

rule foo =
{
println( asBit( 0, 10 ) + undef )

println( 0 as Bit'10 + undef )
}
3 changes: 1 addition & 2 deletions test/builtin/print/print/14.casm
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,5 @@ CASM init foo

rule foo =
{
println( asBit( 24, 44 ) + undef )

println( 24 as Bit'44 + undef )
}
3 changes: 1 addition & 2 deletions test/builtin/print/print/error/undef.casm
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,5 @@ CASM init foo

rule foo =
{
println( undef ) //@ ERROR( 1002 )

println( undef ) //@ ERROR( 1002 )
}
5 changes: 3 additions & 2 deletions test/builtin/print/string.casm
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ CASM init foo

rule foo =
{
print( "string" )
print( "two words" )
print( undef )
print( "" )
print( "foo" )
print( "foo bar baz etc." )
}
2 changes: 1 addition & 1 deletion test/definition/derived/error/invalid_return_type.casm
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@

CASM init foo

derived bar -> Abstract< Integer > = //@ERROR( 0100 )
derived bar -> Abstract< Integer > = //@ERROR( 0102 )
undef

rule foo =
Expand Down
Loading