Skip to content

Commit

Permalink
Merge pull request #15 from casm-lang/feature/48_as_operator
Browse files Browse the repository at this point in the history
Feature/48 as operator
  • Loading branch information
emmanuel099 authored Nov 20, 2017
2 parents 5e119c6 + bac4162 commit d0753ad
Show file tree
Hide file tree
Showing 146 changed files with 3,853 additions and 589 deletions.
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 )
}
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
File renamed without changes.
Loading

0 comments on commit d0753ad

Please sign in to comment.