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

Update Custom Set to follow new standard suite #123

Merged
merged 1 commit into from
May 16, 2016

Conversation

IanWhitney
Copy link
Contributor

Details about the updated test suite are at
exercism/problem-specifications#232

This commit brings our tests in line with the new standard and removes
now-unnecessary code from the example solution

let set1 = CustomSet::new(vec![1, 2, 3, 4]);
let set2 = CustomSet::new(vec![2, 3, 4, 5]);
assert!(set1 != set2);
fn false_when_the_element_is_in_the_set() {
Copy link
Member

Choose a reason for hiding this comment

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

not in the set

@petertseng
Copy link
Member

Good on test content, I think (again I didn't exhaustively check that every single test that's present in custom-set.json is present here). small comments on test names

Details about the updated test suite are at
exercism/problem-specifications#232

This commit brings our tests in line with the new standard and removes
now-unnecessary code from the example solution
@IanWhitney IanWhitney merged commit c06ae40 into exercism:master May 16, 2016
@IanWhitney IanWhitney deleted the update_custom_set branch May 16, 2016 18:21
let set1 = CustomSet::new(vec![1, 2, 3, 4]);
let set2 = CustomSet::new(vec![3, 2, 5]);
assert_eq!(set1.union(&set2), CustomSet::new(vec![1, 2, 3, 4, 5]));
fn difference_of_two_non_empty_sets_is_elements_only_in_first_set_one() {
Copy link
Member

Choose a reason for hiding this comment

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

missed this - can remove one suffix?

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