Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
clean-test-properties
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
3
Issues
3
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
clean-and-itasks
clean-test-properties
Commits
e1d80280
Verified
Commit
e1d80280
authored
Aug 10, 2019
by
Camil Staps
🚀
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use location_and_name instead of module_and_name
parent
e794f0c5
Pipeline
#27902
passed with stage
in 5 minutes and 53 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
src/testproperties.icl
src/testproperties.icl
+8
-5
No files found.
src/testproperties.icl
View file @
e1d80280
...
...
@@ -309,10 +309,13 @@ where
coverage
=
toReal
(
length
(
filter
(
not
o
isEmpty
)
propsets
))
/
toReal
(
length
fes
)
tests
=
join
"
\n\n
"
[
"module "
+++
testmodname
,
"import Gast, Gast.CommandLine"
,
join
"
\n
"
[
"import Gast, Gast.CommandLine"
,
"from Testing.TestEvents import :: TestLocation{..}"
,
"from StdString import instance toString {#Char}"
,
"import Control.GenBimap"
,
"import "
+++
modname
]
,
bootstrap
,
generators_string
,
invariants
...
...
@@ -402,7 +405,7 @@ where
{
gp_name
=
tname
,
gp_implementation
=
join
"
\n
"
[
tname
+++
" :: Property"
,
tname
+++
" =
module_and_name
\"
"
+++
modname
+++
"
\"
\"
"
+++
fname
+++
": "
+++
name`
+++
"
\"
"
,
tname
+++
" =
location_and_name {moduleName=Just
\"
"
+++
modname
+++
"
\"
}
\"
"
+++
fname
+++
": "
+++
name`
+++
"
\"
"
,
"
\t
("
+++
join
" "
lambdas
+++
join
" "
[
name``
+++
"`"
:[
ga
.
ga_expr
\\
ga
<-
gas
]]
+++
{
')'
\\
_
<-
lambdas
}
+++
")"
,
"where"
,
"
\t
"
+++
name``
+++
"` :: "
+++
toString
type`
...
...
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