Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Finn Teegen
curry-frontend
Commits
7de64fb7
Commit
7de64fb7
authored
Oct 05, 2013
by
Matthias Böhm
Browse files
added test files to compile check that showed the bug where the "Enum" class wasn`t found
parent
5338e84d
Changes
3
Hide whitespace changes
Inline
Side-by-side
test/test2.sh
View file @
7de64fb7
...
...
@@ -244,6 +244,20 @@ do
if
[
-n
"
$internalErrs
"
]
;
then
echo
"Internal error in
$file
"
;
fi
done
# check # 3b (errors in files that are compiled with type class extensions)
for
file
in
EnumBug EnumBug2
do
echo
$file
>>
tmp.txt
if
[
!
-r
typeclasses/modules/
$file
.curry
]
;
then
echo
"*********** file doesn't exist:
$file
"
;
fi
$cymake
-f
-X
TypeClassExtensions
-i
typeclasses/modules typeclasses/modules/
$file
.curry 2> stderr.txt 1> stdout.txt
&&
\
(
echo
"===================="
;
echo
"| No error in
$file
.curry:"
;
echo
"===================="
;
\
cat
stdout.txt
;
cat
stderr.txt
;
echo
;
touch
$errorFile
)
internalErrs
=
`
cat
stderr.txt |
grep
"Internal error"
`
if
[
-n
"
$internalErrs
"
]
;
then
echo
"Internal error in
$file
"
;
fi
done
echo
`
cat
tmp.txt |
wc
-l
`
files checked
if
[
!
-f
$errorFile
]
;
then
...
...
test/typeclasses/modules/EnumBug.curry
0 → 100644
View file @
7de64fb7
test x = [x ..]
test/typeclasses/modules/EnumBug2.curry
0 → 100644
View file @
7de64fb7
test = [1 ..]
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment