The errata list is a list of errors and their corrections that were found after the product was released.
The following errata were submitted by our customers and have not yet been approved or disproved by the author or editor. They solely represent the opinion of the customer.
Color Key: Serious technical mistake Minor technical mistake Language or formatting error Typo Question Note Update
Version |
Location |
Description |
Submitted by |
Date submitted |
|
1
Expecting Exceptions, 4th paragraph |
Sorry, the page number is incorrect, but I could not find the page number in the safari books online version.
In https://www.safaribooksonline.com/library/view/spock-up-and/9781491923283/ch03.html, section "Expecting Exceptions", paragraph 4, the text is describing the leftShift operator, but the second sentence reads "Groovy enhances the collection API to allow elements to be appended using >>."
Above, note that the sentence ends with a rightShift operator. I think it should be corrected to be a leftShift operator.
|
Priya Natarajan |
Jan 22, 2019 |
|
1
Chapter 6, Code block: ANTIPATTERN: TESTING VARIANTS BY USING LOOPS |
Sorry, the page number is incorrect, but I could not find the page number in the safari books online version.
In https://www.safaribooksonline.com/library/view/spock-up-and/9781491923283/ch06.html, in the code block "Antipattern: Testing Variants by Using Loops", last bullet point reads
"We’re confusing action and assertion in our test. The primary thing being asserted
is that a RegistrationException is thrown, but the validation of that happening is part of the where: block. There’s no way for us to use Spock’s thrown method to validate multiple exceptions thrown from the where: block, so we have no choice..."
Above, both instances of "where:" should be "when:", I think.
|
Priya Natarajan |
Jan 22, 2019 |
Printed |
Page 326
Spaceship Operator section, 1st sentence |
At this location there is a thing called the "spaceship operator", which is a circle with a dot in the center.
This circle-dot icon appears in dozens of locations in the book, and does not seem to have a consistent meaning.
For example, I think it first shows up on p 14 in the "Label Syntax" box, where there is the following line of code:
if (--i == <circle-dot-icon>) {
break loop;
}
What does this mean?
Is there an online copy of this book that I can get access to in order to understand the content of the printed book I purchased on Amazon a week ago?
I mean I bought this book, because I need to use it, but this circle-dot-icon seems to appear all over the place, replacing something that might be meaningful. This renders the book nearly useless.
Unless, of course, the circle-dot actually means something, in which case I'd like to know what it means.
Thanks,
Rich
|
Rich Levinson |
Mar 06, 2019 |