Skip to content

Commit

Permalink
Fix tests that I have missed in PR #57 and #58
Browse files Browse the repository at this point in the history
  • Loading branch information
emmanuel099 committed May 2, 2018
1 parent a2a158c commit 5893003
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion test/definition/derived/error/identifier_is_builtin.casm
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@

CASM init foo

derived assert( arg : Integer ) -> Integer = 0 //@ ERROR( d100 )
derived assert( arg : Integer ) -> Integer = 0 //@ ERROR( 0504 )

rule foo =
skip
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ rule foo =
let
c : Other
=
::Red //@ERROR( cc11 )
Red //@ERROR( 0500 )
in
skip
}
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ enumeration Color = { Red, Green, Blue }

rule foo =
{
let c =
::Red //@ ERROR( cc11 )
let c = //@ ERROR( 1eee )
Red //@ ERROR( 0500 )
in
skip
}
3 changes: 2 additions & 1 deletion test/definition/enumeration/error/missing_namespace.casm
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ enumeration Color = { Red, Green, Blue }

rule foo =
{
let c = Red in //@ERROR( 0500 )
let c = //@ ERROR( 1eee )
Red in //@ERROR( 0500 )
skip
}
2 changes: 1 addition & 1 deletion test/definition/using/enumeration_type_alias.casm
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,5 @@ enumeration Color = {
using MyType = Color

rule foo =
let x : MyType = ::Red in
let x : MyType = Red in
skip
2 changes: 1 addition & 1 deletion test/definition/using/use_type_alias_as_universe.casm
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ rule foo =
forall s in MyState do
visitedStates( s ) := true

assert( visitedStates( ::On ) and visitedStates( ::Off ) )
assert( visitedStates( On ) and visitedStates( Off ) )

program( self ) := undef
|}

0 comments on commit 5893003

Please sign in to comment.