@@ -30,32 +30,32 @@ TEST_CASE("Socket connection test") {
3030 }
3131
3232 SUBCASE (" Test receive" ) {
33- tcp_conn.send (" world.set_block (100,100,100,30)\n " );
34- tcp_conn.send (" world.get_block (100,100,100)\n " );
33+ tcp_conn.send (" world.setBlock (100,100,100,30)\n " );
34+ tcp_conn.send (" world.getBlock (100,100,100)\n " );
3535 std::string return_str = tcp_conn.recv ();
3636 CHECK_EQ (return_str, " 30" );
37- tcp_conn.send (" world.set_block (100,100,100,0)\n " );
37+ tcp_conn.send (" world.setBlock (100,100,100,0)\n " );
3838 }
3939
4040 SUBCASE (" Repeated receive" ) {
41- tcp_conn.send (" world.set_block (100,100,100,29)\n " );
42- tcp_conn.send (" world.get_block (100,100,100)\n " );
41+ tcp_conn.send (" world.setBlock (100,100,100,29)\n " );
42+ tcp_conn.send (" world.getBlock (100,100,100)\n " );
4343 std::string return_str = tcp_conn.recv ();
4444 CHECK_EQ (return_str, " 29" );
45- tcp_conn.send (" world.set_block (100,100,100,0)\n " );
45+ tcp_conn.send (" world.setBlock (100,100,100,0)\n " );
4646 }
4747
4848 SUBCASE (" Send command" ) { tcp_conn.send_command (" chat.post" , " test message" ); }
4949
5050 SUBCASE (" Send receive command" ) {
51- tcp_conn.send_command (" world.set_block " , 100 , 100 , 100 , 26 );
52- auto result = tcp_conn.send_receive_command (" world.get_block " , 100 , 100 , 100 );
51+ tcp_conn.send_command (" world.setBlock " , 100 , 100 , 100 , 26 );
52+ auto result = tcp_conn.send_receive_command (" world.getBlock " , 100 , 100 , 100 );
5353 CHECK_EQ (result, " 26" );
5454
55- tcp_conn.send_command (" world.set_block " , 100 , 100 , 100 , 25 );
56- result = tcp_conn.send_receive_command (" world.get_block " , 100 , 100 , 100 );
55+ tcp_conn.send_command (" world.setBlock " , 100 , 100 , 100 , 25 );
56+ result = tcp_conn.send_receive_command (" world.getBlock " , 100 , 100 , 100 );
5757 CHECK_EQ (result, " 25" );
58- tcp_conn.send_command (" world.set_block " , 100 , 100 , 100 , 0 );
58+ tcp_conn.send_command (" world.setBlock " , 100 , 100 , 100 , 0 );
5959 }
6060
6161 // TODO: This is no longer the same size for whatever reason. Please fix or
0 commit comments