![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Chapter 6: | How To Perform Tests using Predicates |
In this chapter and in the next several chapters, you learn how to do routine testing and branching. You see that Smalltalk's mechanisms for accomplishing such tasks differ from those that you would find in other programming languages, because, in Smalltalk, all such mechanisms reflect Smalltalk's receivermessageanswer paradigm.
In particular, in this chapter, you learn how number testing can be cast in the receivermessageanswer paradigm.