Skip to content

Conversation

@sdkrystian
Copy link
Member

No description provided.

test/value.cpp Outdated
}
{
// verify moved from
object obj{{"a", 1}, {"a", 1}};
Copy link
Member

Choose a reason for hiding this comment

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

I would not use duplicate keys

test/value.cpp Outdated
{
// verify moved from
object obj{{"a", 1}, {"a", 1}};
BOOST_TEST(obj.capacity());
Copy link
Member

Choose a reason for hiding this comment

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

I would not depend on conversion to bool. In other words, spell this out: obj.capacity() > 0

test/value.cpp Outdated
object obj{{"a", 1}, {"a", 1}};
BOOST_TEST(obj.capacity());
value jv(std::move(obj), {});
BOOST_TEST(!obj.capacity());
Copy link
Member

Choose a reason for hiding this comment

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

I would spell this out: obj.capacity() == 0

Copy link
Member Author

Choose a reason for hiding this comment

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

Copy, will apply.

@codecov
Copy link

codecov bot commented Mar 8, 2020

Codecov Report

Merging #54 into develop will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff            @@
##           develop      #54   +/-   ##
========================================
  Coverage    99.09%   99.09%           
========================================
  Files           57       57           
  Lines         4854     4855    +1     
========================================
+ Hits          4810     4811    +1     
  Misses          44       44           

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 37d0a09...f75ecaf. Read the comment docs.

@sdkrystian sdkrystian closed this Mar 8, 2020
@sdkrystian sdkrystian deleted the value-obj-bug branch June 8, 2020 19:24
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.

2 participants