Skip to content

Commit 649ac3e

Browse files
authored
Merge pull request #1962 from kosarinin/remove-semicolon-in-go-solution-generator
Remove semicolon from golang solution generator template
2 parents bf77552 + ff19331 commit 649ac3e

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

services/app/apps/codebattle/test/docker_execution/golang_test.exs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ defmodule Codebattle.DockerExecution.GolangTest do
5757
Mix.Shell.Process.flush()
5858

5959
Phoenix.ChannelTest.push(socket1, "check_result", %{
60-
editor_text: "package main;\n\nfunc solution(a int64, b int64) int64 {\n\treturn a - b\n}",
60+
editor_text: "package main\n\nfunc solution(a int64, b int64) int64 {\n\treturn a - b\n}",
6161
lang_slug: "golang"
6262
})
6363

@@ -89,7 +89,7 @@ defmodule Codebattle.DockerExecution.GolangTest do
8989
Phoenix.ChannelTest.push(socket1, "editor:data", %{editor_text: "test", lang_slug: "js"})
9090

9191
Phoenix.ChannelTest.push(socket1, "check_result", %{
92-
editor_text: "package main;\n\nfunc solution(a int64, b int64) int64 {\n\treturn a + b\n}",
92+
editor_text: "package main\n\nfunc solution(a int64, b int64) int64 {\n\treturn a + b\n}",
9393
lang_slug: "golang"
9494
})
9595

services/app/apps/runner/lib/runner/languages.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ defmodule Runner.Languages do
358358
checker_file_name: "checker.go",
359359
docker_image: "codebattle/golang:1.22.1",
360360
solution_template: """
361-
package main;
361+
package main
362362
// import "fmt"
363363
364364
func solution(<%= arguments %>)<%= expected %> {

services/app/apps/runner/test/runner/solution_generator_test.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ defmodule Runner.SolutionGeneratorTest do
5050
"""
5151

5252
@golang_expected """
53-
package main;
53+
package main
5454
// import "fmt"
5555
5656
func solution(a int64, text string, b float64, c bool, nested_hash_of_string map[string]string, nested_array_of_string []string, nested_array_of_array_of_strings [][]string) []string {

0 commit comments

Comments
 (0)