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

Listing 3.14: clarify annotations #3

Open
pledbrook opened this issue Apr 28, 2013 · 0 comments
Open

Listing 3.14: clarify annotations #3

pledbrook opened this issue Apr 28, 2013 · 0 comments

Comments

@pledbrook
Copy link
Contributor

From this post on the Manning forums, current:

List<String> sortedPostContent = foundUser.posts.collect { it.content }.sort() #2
[...]
sortedPostContent == ['First', 'Second', 'Third'] #3
[...]

#2 Iterates through User’s posts
#3 Sorts posts alphabetically
[...]

for our test case we sort them alphabetically to make the comparison meaningful #3

Suggestion :

#2 Iterates through User’s posts and sort them alphabetically
#3 Compare retrieved values to known values

[...]

for our test case we sort them alphabetically to make the comparison meaningful #2
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