Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cduce
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
19
Issues
19
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cduce
cduce
Commits
33a1a15d
Commit
33a1a15d
authored
Jun 20, 2014
by
Julien Lopez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix tests and git hook
parent
a348bcd9
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
41 additions
and
37 deletions
+41
-37
lambdaTests.ml
tests/lambda/src/lambdaTests.ml
+35
-35
printTest.ml
tests/libtest/printTest.ml
+1
-1
build_types.ml
tests/misc/build_types.ml
+1
-1
pre-commit
tools/git_hooks/debug/pre-commit
+4
-0
No files found.
tests/lambda/src/lambdaTests.ml
View file @
33a1a15d
This diff is collapsed.
Click to expand it.
tests/libtest/printTest.ml
View file @
33a1a15d
...
...
@@ -57,7 +57,7 @@ let test_print =
(
Printf
.
sprintf
" Printing %s "
s
)
>::
(
fun
_
->
let
t
=
parse_typ
s
in
Format
.
printf
"String : %s
\n
"
s
;
Format
.
printf
"Print : %a
\n\n
"
Types
.
Print
.
p
rint
t
;
Format
.
printf
"Print : %a
\n\n
"
Types
.
Print
.
p
p_value
t
;
(*
Format.printf "Dump : %a\n\n" Types.dump t;
*)
...
...
tests/misc/build_types.ml
View file @
33a1a15d
...
...
@@ -42,6 +42,6 @@ let rex =
;;
let
string
=
Sequence
.
star
Types
.
Char
.
any
;;
Types
.
Print
.
p
rint
Format
.
std_formatter
rex
;
Types
.
Print
.
p
p_value
Format
.
std_formatter
rex
;
Format
.
fprintf
Format
.
std_formatter
"
\n
"
tools/git_hooks/debug/pre-commit
View file @
33a1a15d
...
...
@@ -16,6 +16,10 @@ fi
echo "Testing lambda..."
cd tests/lambda
make > /dev/null 2>&1 && ./lambdaTests.native > /dev/null 2>&1 && ./valueTests.native > /dev/null 2>&1
if test $? -ne 0; then
echo "Tests failed. Aborting commit."
exit 2
fi
echo "Cleaning..."
make clean > /dev/null 2>&1
cd ../..
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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