Skip to content

Commit

Permalink
add test for string literal size
Browse files Browse the repository at this point in the history
  • Loading branch information
ranjitjhala committed Jul 14, 2015
1 parent c681594 commit 8ae41ba
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/neg/lit.hs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module Lit where

{-@ test :: {v:Int | v == 30} @-}
test = length "cat"
4 changes: 4 additions & 0 deletions tests/pos/lit.hs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module Lit where

{-@ test :: {v:Int | v == 3} @-}
test = length "cat"

0 comments on commit 8ae41ba

Please sign in to comment.