Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch in contracts to verify in core #255

Conversation

mihails-strasuns-sociomantic
Copy link
Contributor

No description provided.

@codecov
Copy link

codecov bot commented Sep 15, 2017

Codecov Report

Merging #255 into v3.x.x will decrease coverage by <.01%.
The diff coverage is 72.22%.

@@            Coverage Diff             @@
##           v3.x.x     #255      +/-   ##
==========================================
- Coverage      72%   71.99%   -0.01%     
==========================================
  Files         458      458              
  Lines       38855    38857       +2     
==========================================
- Hits        27979    27977       -2     
- Misses      10876    10880       +4

@mihails-strasuns-sociomantic
Copy link
Contributor Author

Ping :)

import ocean.transition;

import ocean.core.Test;
Copy link
Contributor

Choose a reason for hiding this comment

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

This should be another commit, but I don't think it matters much, up to you.

@@ -103,7 +104,7 @@ struct ByteSwap

final static void swap16 (void *dst, size_t bytes)
{
assert ((bytes & 0x01) is 0);
verify((bytes & 0x01) is 0);

Choose a reason for hiding this comment

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

The commit message isn't really true. This commit alters more than just "in contracts".

// Internal name/value lists
assert(E.names == names);
assert(E.values == values);
test(names.length == values.length);

Choose a reason for hiding this comment

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

Separate commit for this?

@@ -483,6 +470,11 @@ class MessageFiber
}
body
{
verify(

Choose a reason for hiding this comment

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

This is a very important one! 👍

@@ -111,19 +111,13 @@

module ocean.core.SmartEnum;


/*******************************************************************************

Choose a reason for hiding this comment

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

Why all the mixed in formatting changes? :(

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Because I couldn't decide where to put new import without it :trollface:

Choose a reason for hiding this comment

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

Hmm... I don't see the relation.

@mihails-strasuns-sociomantic
Copy link
Contributor Author

Updated with test changes split into separate commit

@mihails-strasuns-sociomantic
Copy link
Contributor Author

Rebased

@gavin-norman-sociomantic gavin-norman-sociomantic merged commit fbcb256 into sociomantic-tsunami:v3.x.x Sep 21, 2017
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