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
G
gast
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
4
Issues
4
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
gast
Commits
1131ac40
Verified
Commit
1131ac40
authored
Mar 19, 2018
by
Camil Staps
🚀
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Put back hierarchical names (fixes issue introduced in
!7
)
parent
bdc5b9d6
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
2 deletions
+4
-2
Libraries/Gast/StdProperty.icl
Libraries/Gast/StdProperty.icl
+1
-1
Libraries/Gast/Testable.dcl
Libraries/Gast/Testable.dcl
+1
-0
Libraries/Gast/Testable.icl
Libraries/Gast/Testable.icl
+2
-1
No files found.
Libraries/Gast/StdProperty.icl
View file @
1131ac40
...
...
@@ -198,7 +198,7 @@ label :: !l !p -> Property | Testable p & genShow{|*|} l
label
l
p
=
Prop
(
testname
p
)
(\
rs
r
=
evaluate
p
rs
{
r
&
labels
=
[
show1
l
:
r
.
labels
]})
name
::
!
n
!
p
->
Property
|
Testable
p
&
toString
n
name
n
p
=
Prop
(
toString
n
)
(
evaluate
p
)
name
n
p
=
Prop
(
toString
n
)
(
\
rs
r
->
evaluate
p
rs
{
r
&
namePath
=[
toString
n
:
r
.
namePath
]}
)
limitNrOfRecFieldValues
::
!(
Map
(
TypeName
,
RecFieldName
)
Int
)
!
p
->
Property
|
Testable
p
limitNrOfRecFieldValues
limits
p
=
Prop
(
testname
p
)
(\
rs
r
=
evaluate
p
rs
{
Admin
|
r
&
recFieldValueNrLimits
=
limits
})
...
...
Libraries/Gast/Testable.dcl
View file @
1131ac40
...
...
@@ -23,6 +23,7 @@ from Text.JSON import :: JSONNode, generic JSONEncode
{
labels
::
![
String
]
,
args
::
![
String
]
,
argsJSON
::
![
JSONNode
]
,
namePath
::
![
String
]
,
res
::
!
Result
,
failedAssertions
::
![(!
FailedAssertion
,
!
String
,
!
String
)]
//* Failed assertion & string representation of args
,
recFieldValueNrLimits
::
!
Map
(
TypeName
,
RecFieldName
)
Int
//* Restricts the number of values generated for record fields
...
...
Libraries/Gast/Testable.icl
View file @
1131ac40
...
...
@@ -32,6 +32,7 @@ instance == Result where (==) x y = x===y
newAdmin
::
Admin
newAdmin
=
{
res
=
Undef
,
labels
=[],
args
=[],
argsJSON
=
[],
failedAssertions
=
[]
,
namePath
=
[]
,
recFieldValueNrLimits
=
'
Map
'.
newMap
}
...
...
@@ -432,7 +433,7 @@ where
,
nE
=
nE
,
args
=
res
.
Admin
.
args
,
argsJSON
=
res
.
Admin
.
argsJSON
,
name
=
testname
p
,
name
=
join
"."
[
testname
p
:
reverse
res
.
namePath
]
,
failedAssertions
=
res
.
Admin
.
failedAssertions
}
...
...
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