Skip to content
This repository has been archived by the owner on Jul 6, 2019. It is now read-only.

Add rudimentary tests for ioreg #128

Merged
merged 4 commits into from
Aug 28, 2014
Merged

Conversation

bgamari
Copy link
Contributor

@bgamari bgamari commented Aug 7, 2014

No description provided.

// See the License for the specific language governing permissions and
// limitations under the License.

/*! Tests for ioreg! syntax extension */
Copy link
Contributor

Choose a reason for hiding this comment

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

Preferring //! over /*!. Not sure if that is a Zinc style thing, but /* */ is falling out of favour anyway.

Copy link
Member

Choose a reason for hiding this comment

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

Yup, that's also what the rust style suggests.

@bgamari
Copy link
Contributor Author

bgamari commented Aug 17, 2014

@bharrisau @farcaller any thoughts on the above? As I said, my weak opinion is that we should just keep things simple (yet still quite readable, IMHO). However, if others feel strongly about using Shiny/Hamcrest I'm willing to go that route.

Either way, I would like to start clearing out my patch queue and move on to other things.

@farcaller
Copy link
Member

It may be reasonable to convert hamcrest's expect to expect!, that will take line!() into account. Overall I prefer hamcrest tests as they do add to condition readability as compared to plain assertions (or, uh, I've written to much test code in rspec).

I'm not enforcing both libs, but my two points are:

  • there should be one way we do tests across zinc;
  • shiny/hamcrest really worked out nice in os tests, and I'm cleaning up PT tests to use shiny as well and so far I like the result.

I'll approve this one PR no matter what you do use for tests, but let's get into ML to discuss if we're going to use shiny/hamcrest everywhere until I started doing that on my own. And if we end up using the libs, the code will be refactored.

PS: expect some latency in my responses, out on vacation ☀️

@bgamari
Copy link
Contributor Author

bgamari commented Aug 17, 2014

r?

@bharrisau
Copy link
Contributor

I'm still away, so I've only given it a quick scan - but it looks good to me.

Looks like Travis is failing on an ioreg related issue. Can you double check that then r=me.

hacknbot added a commit that referenced this pull request Aug 18, 2014
Add rudimentary tests for ioreg

Reviewed-by:
hacknbot added a commit that referenced this pull request Aug 18, 2014
Add rudimentary tests for ioreg

Reviewed-by:
hacknbot added a commit that referenced this pull request Aug 18, 2014
Add rudimentary tests for ioreg

Reviewed-by:
hacknbot added a commit that referenced this pull request Aug 18, 2014
Add rudimentary tests for ioreg

Reviewed-by:
hacknbot added a commit that referenced this pull request Aug 19, 2014
Add rudimentary tests for ioreg

Reviewed-by:
hacknbot added a commit that referenced this pull request Aug 19, 2014
Add rudimentary tests for ioreg

Reviewed-by:
@bgamari bgamari force-pushed the ioreg-test branch 2 times, most recently from c00c200 to b7e2292 Compare August 28, 2014 01:07
@bgamari bgamari added ready and removed in progress labels Aug 28, 2014
bgamari added a commit that referenced this pull request Aug 28, 2014
Add rudimentary tests for ioreg
@bgamari bgamari merged commit a657e06 into hackndev:master Aug 28, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants