Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
a223491d
Commit
a223491d
authored
Jul 01, 2015
by
Chinmay Garde
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Equality override on equation member returns a constraint
parent
e66e8883
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletion
+8
-1
equation_member.dart
packages/cassowary/lib/equation_member.dart
+1
-1
cassowary_test.dart
packages/cassowary/test/cassowary_test.dart
+7
-0
No files found.
packages/cassowary/lib/equation_member.dart
View file @
a223491d
...
...
@@ -15,7 +15,7 @@ abstract class _EquationMember {
Constraint
operator
<=(
_EquationMember
m
)
=>
asExpression
()
<=
m
;
/* Constraint */
operator
==(
_EquationMember
m
)
=>
asExpression
()
==
m
;
Constraint
operator
==(
_EquationMember
m
)
=>
asExpression
()
==
m
;
Expression
operator
+(
_EquationMember
m
)
=>
asExpression
()
+
m
;
...
...
packages/cassowary/test/cassowary_test.dart
View file @
a223491d
...
...
@@ -585,4 +585,11 @@ void main() {
p
.
context
=
"b"
;
expect
(
p
.
context
,
"b"
);
});
test
(
'check_type_of_eq_result'
,
()
{
Param
left
=
new
Param
();
Param
right
=
new
Param
();
expect
((
left
==
right
).
runtimeType
,
Constraint
);
});
}
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