Skip to content

Commit 351f5cf

Browse files
committed
fix test
1 parent 239be4f commit 351f5cf

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/test/java/cat/nyaa/nyaacore/ArgumentsTest.java

+5-5
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ public class ArgumentsTest {
88
@Test
99
public void test1() throws Exception {
1010
String cmd = "`foo bar` far `bar \\`foo`";
11-
CommandReceiver.Arguments arg = CommandReceiver.Arguments.parse(cmd.split(" "));
11+
CommandReceiver.Arguments arg = CommandReceiver.Arguments.parse(cmd.split(" "), null);
1212
assertNotNull(arg);
1313
assertEquals("foo bar", arg.nextString());
1414
assertEquals("far", arg.nextString());
@@ -18,7 +18,7 @@ public void test1() throws Exception {
1818
@Test
1919
public void test2() throws Exception {
2020
String cmd = "key:33 a key:66 b key:13 `key2:a b c` `key 3:d e f`";
21-
CommandReceiver.Arguments arg = CommandReceiver.Arguments.parse(cmd.split(" "));
21+
CommandReceiver.Arguments arg = CommandReceiver.Arguments.parse(cmd.split(" "), null);
2222
assertNotNull(arg);
2323
assertEquals("key:33", arg.nextString());
2424
assertEquals(66, arg.argInt("key"));
@@ -34,7 +34,7 @@ public void test2() throws Exception {
3434
@Test
3535
public void test3() throws Exception {
3636
String cmd = "t w key:`3` key2:`/co l u:miu_bug` ke3y:`12`";
37-
CommandReceiver.Arguments arg = CommandReceiver.Arguments.parse(cmd.split(" "));
37+
CommandReceiver.Arguments arg = CommandReceiver.Arguments.parse(cmd.split(" "), null);
3838
assertNotNull(arg);
3939
assertEquals(3, arg.argInt("key"));
4040
assertEquals("/co l u:miu_bug", arg.argString("key2"));
@@ -51,14 +51,14 @@ public void test3() throws Exception {
5151
@Test
5252
public void test4() throws Exception {
5353
String cmd = "key :`3`";
54-
CommandReceiver.Arguments arg = CommandReceiver.Arguments.parse(cmd.split(" "));
54+
CommandReceiver.Arguments arg = CommandReceiver.Arguments.parse(cmd.split(" "), null);
5555
assertNull(arg);
5656
}
5757

5858
@Test
5959
public void test5() throws Exception {
6060
String cmd = "key: `3`";
61-
CommandReceiver.Arguments arg = CommandReceiver.Arguments.parse(cmd.split(" "));
61+
CommandReceiver.Arguments arg = CommandReceiver.Arguments.parse(cmd.split(" "), null);
6262
assertNotNull(arg);
6363
assertEquals("key:", arg.top());
6464
assertEquals("", arg.argString("key"));

0 commit comments

Comments
 (0)