Slide 73
Slide 73 text
IUUQTKCFIBWFPSHIUUQEIBUFOBOFKQEJHJUBMTPVM
public class StackBehavior {
public void shouldPopValuesInReverseOrder() throws Exception {
stStack.push("test 1");
stStack.push("test 2");
Ensure.that(stStack.pop(), m.is("test 2"));
Ensure.that(stStack.pop(), m.is("test 1"));
}
public void shouldLeaveValueOnStackAfterPeek() throws Exception {
stStack.push("test 1");
stStack.push("test 2");
Ensure.that(stStack.peek(), m.is("test 2"));
Ensure.that(stStack.pop(), m.is("test 2"));
}
}
+#FIBWF։ൃ։࢝ CZ%BO/PSUI
˞ཌϦϦʔε
lςετϝιουʮTIPVMEʯͱ͍͏୯ޠͰ࢝Ίͳ͚ΕͳΒͳ͍ͱ͍͏
ن͕ු͔ͼ·ͨ͠ɻ͜ͷจষςϯϓϨʔτɺ͢ͳΘͪͦͷΫϥε͕Կ
͔Λ͢Δ͖ͩͱ͍͏จষςϯϓϨʔτ͕ҙຯ͍ͯ͠Δͷɺݱࡏରͱ
ͳ͍ͬͯΔΫϥεʹର͢Δςετ͔͠ఆٛͰ͖ͳ͍ͱ͍͏͜ͱͰ͢z