FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

set: Implement __or__ of set by DoDaek · Pull Request #84 · go-python/gpython · GitHub

set: Implement __or__ of set - #84

Merged
corona10 merged 2 commits into
go-python:masterfrom
DoDaek:issue-76
Sep 17, 2019
Merged

set: Implement __or__ of set#84
corona10 merged 2 commits into
go-python:masterfrom
DoDaek:issue-76

Conversation

DoDaek commented Sep 17, 2019

Copy link
Copy Markdown
Contributor

Implement or of set
ISSUE: #76

corona10 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Implementation is wrong

Expected

>>> a = {1,2,3}
>>> b = {4,5,6}
>>> a | b
{1, 2, 3, 4, 5, 6}
>>> 4 in a
False
>>>

Got

>>> a = {1,2,3}
>>> b = {4,5,6}
>>> a | b
<set instance at 0xc0003f8000>
>>> a
<set instance at 0xc0003f8000>
>>> 4 in a
True
>>>

Comment thread py/set.go Outdated

Copy link
Copy Markdown

Codecov Report

Merging #84 into master will increase coverage by 0.01%.
The diff coverage is 81.81%.

@@            Coverage Diff             @@
##           master      #84      +/-   ##
==========================================
+ Coverage   68.83%   68.84%   +0.01%     
==========================================
  Files          59       59              
  Lines       10534    10545      +11     
==========================================
+ Hits         7251     7260       +9     
- Misses       2774     2775       +1     
- Partials      509      510       +1
Impacted Files Coverage Δ
py/set.go 37.64% <81.81%> (+6.56%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4f7bb19...8cc9353. Read the comment docs.

corona10 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

LGTM

corona10 merged commit 261242c into go-python:master Sep 17, 2019
DoDaek deleted the issue-76 branch September 20, 2019 09:09
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants


Back | FazBrowse Home | New Git URL