You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit b376174
Browse filesBrowse the repository at this point in the historyBrowse files
massive refactoring! koans runner and framework have been refactored into their own jar, added intelegient batch/shell invocation of runner (lots of work to do there) - still have some of the more frivolous tests failing, get to them soon
lesson="The __ are an attempt to communicate the need to fill in an answer. Judging by context, what should __ be replaced with?"/>
10
+
<Koanname="assertBooleanFalse"
11
+
lesson="Like the prior koan. Ponder if you will, the power of simple assertions when verifying an object's behavior."/>
12
+
<!-- TODO introduce instantiation, constructors -->
13
+
<Koanname="assertNullObject"
14
+
lesson="A keyword in java to represent an unitialized reference is 'null'. There are times when something should be null, and this assertion can prove that."/>
15
+
<Koanname="assertNotNullObject"
16
+
lesson="Sometimes you merely wish to assert an object is not null. This assertion should be used sparingly, often a more specific assertion is appropriate."/>
17
+
<!-- TODO explain arguments (mention they've been used in prior koans) -->
18
+
<Koanname="assertEqualsWithDescriptiveMessage"
19
+
lesson="Like the prior assertions, only this one invokes equals method on the 2nd to last argument, in this case, 1. This will blow up if the last two arguments are not .equal(...)"/>
20
+
<!-- TODO finish explaining -->
21
+
<Koanname="assertSameInstance"
22
+
lesson="An object may equal another object, but it will never be the same as another object. Two references to the same object is not the same as two references to two equal objects."/>
23
+
<Koanname="assertNotSameInstance"
24
+
lesson="Notice the same instance has been reassigned. Both same and sameReference refer to the same Integer instance. If sameReference were a new Object() of any type [hint!] this would pass."/>
25
+
<!-- TODO assertThatUsingMatcher" -->
26
+
</Suite>
27
+
<!--
28
+
TODO: AboutDataTypes...
29
+
-->
30
+
<Suiteclass="AboutObjects">
31
+
<Koanname="objectEqualsNull"
32
+
lesson="An Object instance should NEVER equal null keyword. This applies to all subclasses (everything exception primitives subclass Object)."/>
33
+
<Koanname="objectEqualsSelf"
34
+
lesson="An Object instance should equal itself. This too applies to all subclasses of Object."/>
lesson="The inverse of the prior koan, though two objects may be logically equal, they are not referencing the same object."/>
43
+
<Koanname="objectToString"
44
+
lesson="How to identify an object at in string form. Should be overridden in any objects with internal state. Default to string is classname of the instance followed by its hashCode in base 16 (hexadecimal)."/>
45
+
<Koanname="toStringConcatenates"
46
+
lesson="Java 's string concatenation syntax utilizes addition operator to splice a string with virtually anything."/>
0 commit comments