Skip to content

normalize_newlines adapter predicate #45

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

Closed
epage opened this issue May 29, 2018 · 2 comments
Closed

normalize_newlines adapter predicate #45

epage opened this issue May 29, 2018 · 2 comments

Comments

@epage
Copy link
Contributor

epage commented May 29, 2018

Needed for assert-rs/assert_cli#77

@epage
Copy link
Contributor Author

epage commented Jul 1, 2018

@epage
Copy link
Contributor Author

epage commented Jul 1, 2018

Trim or Utf8 adapters would be good examples

See https://github.com/assert-rs/predicates-rs/blob/master/src/str/adapters.rs

kammitama5 added a commit to kammitama5/predicates-rs that referenced this issue Jul 24, 2018
Created normalize file and added normalize-line-endings as default dependency
Created normalize trim predicate
Issue assert-rs#45
kammitama5 added a commit to kammitama5/predicates-rs that referenced this issue Jul 28, 2018
Created normalize file and added normalize-line-endings as default dependency
Created normalize trim predicate
Issue assert-rs#45

Normalize newlines

- Insert newline in adapter.rs for readability
- Add example code in adapter.rs for usability
- Add self to mod.rs
- Change to NormalizedPredicate in normalize.rs to avoid ambiguity

Normalize newlines syntax clean-up

Make comments "///" instead of "//" for consistency
Improve readability by making one commented block for function in adapter.rs
Delete extraneous whitespace for readability

Normalize NewLines

Add copyright notice to adapters.rs and normalize.rs

Amend doc tests for passing CI

Normalize NewLines passes all tests

Struct documentation added for NormalizedPredicate
Assert tests fixed in adapters.rs (string assertions did not match)
kammitama5 added a commit to kammitama5/predicates-rs that referenced this issue Jul 28, 2018
Resolve adapter.rs

Added normalize_newlines adapter predicate

Created normalize file and added normalize-line-endings as default dependency
Created normalize trim predicate
Issue assert-rs#45

Normalize newlines

- Insert newline in adapter.rs for readability
- Add example code in adapter.rs for usability
- Add self to mod.rs
- Change to NormalizedPredicate in normalize.rs to avoid ambiguity

Normalize newlines syntax clean-up

Make comments "///" instead of "//" for consistency
Improve readability by making one commented block for function in adapter.rs
Delete extraneous whitespace for readability

Normalize NewLines

Add copyright notice to adapters.rs and normalize.rs

Amend doc tests for passing CI

Normalize NewLines passes all tests

Struct documentation added for NormalizedPredicate
Assert tests fixed in adapters.rs (string assertions did not match)

change struct description to pred.normalize() for consistency

Add Cfg feature to NormalizedPredicate in adapter.rs
@epage epage closed this as completed in a418eef Jul 28, 2018
epage pushed a commit to epage/predicates-rs that referenced this issue Jul 28, 2018
Resolve adapter.rs

Added normalize_newlines adapter predicate

Created normalize file and added normalize-line-endings as default dependency
Created normalize trim predicate
Fixes assert-rs#45

Normalize newlines

- Insert newline in adapter.rs for readability
- Add example code in adapter.rs for usability
- Add self to mod.rs
- Change to NormalizedPredicate in normalize.rs to avoid ambiguity

Normalize newlines syntax clean-up

Make comments "///" instead of "//" for consistency
Improve readability by making one commented block for function in adapter.rs
Delete extraneous whitespace for readability

Normalize NewLines

Add copyright notice to adapters.rs and normalize.rs

Amend doc tests for passing CI

Normalize NewLines passes all tests

Struct documentation added for NormalizedPredicate
Assert tests fixed in adapters.rs (string assertions did not match)

change struct description to pred.normalize() for consistency

Add Cfg feature to NormalizedPredicate in adapter.rs
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

No branches or pull requests

1 participant