We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c7a6f7f commit 5e7a559Copy full SHA for 5e7a559
1 file changed
src/test/java/calculator/ApplicationTest.java
@@ -61,6 +61,12 @@ public void runMain() {
61
});
62
}
63
64
+ @Test
65
+ public void 마침표_사용(){
66
+ assertThatThrownBy(() -> runException("1.2.3:4"))
67
+ .isInstanceOf(IllegalArgumentException.class);
68
+ }
69
+
70
@Test
71
public void 따옴표_구분자_사용() {
72
assertSimpleTest(() -> {
@@ -76,4 +82,12 @@ public void runMain() {
76
82
assertThat(output()).contains("결과 : 3");
77
83
78
84
85
86
87
+ public void 문자열_없음(){
88
+ assertSimpleTest(() -> {
89
+ run("\n");
90
+ assertThat(output()).contains("결과 : 0");
91
+ });
92
79
93
0 commit comments