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

Add serde test for length. Add unit tests for each function in length.rs. #155 #172

Merged
merged 1 commit into from Jan 3, 2017

Conversation

@absoludity
Copy link
Contributor

absoludity commented Dec 18, 2016

Also adds unit tests for each function in length.rs.

This fixes #155


This change is Reviewable

@absoludity absoludity changed the title Add serde test for length. Add serde test for length. Add unit tests for each function in length.rs. Dec 18, 2016
@absoludity absoludity changed the title Add serde test for length. Add unit tests for each function in length.rs. Add serde test for length. Add unit tests for each function in length.rs. #155 Dec 18, 2016
@Ms2ger
Ms2ger approved these changes Jan 3, 2017
Copy link
Contributor

Ms2ger left a comment

One minor comment below.

#[test]
fn test_zero_add() {
type LengthCm = Length<f32, Cm>;
let length: LengthCm= Length::new(5.0);

This comment has been minimized.

@Ms2ger

Ms2ger Jan 3, 2017

Contributor

Nit: space before =

@absoludity absoludity force-pushed the absoludity:serde-tests branch from 54c9be4 to 8d7f20f Jan 3, 2017
@Ms2ger
Copy link
Contributor

Ms2ger commented Jan 3, 2017

@bors-servo
Copy link
Contributor

bors-servo commented Jan 3, 2017

📌 Commit 8d7f20f has been approved by Ms2ger

@bors-servo
Copy link
Contributor

bors-servo commented Jan 3, 2017

Testing commit 8d7f20f with merge 4a2e191...

bors-servo added a commit that referenced this pull request Jan 3, 2017
Add serde test for length. Add unit tests for each function in length.rs. #155

Also adds unit tests for each function in length.rs.

This fixes #155

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/euclid/172)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

bors-servo commented Jan 3, 2017

☀️ Test successful - status-travis

@bors-servo bors-servo merged commit 8d7f20f into servo:master Jan 3, 2017
2 checks passed
2 checks passed
continuous-integration/travis-ci/pr The Travis CI build passed
Details
homu Test successful
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

3 participants
You can’t perform that action at this time.