Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ defmodule Codebattle.DockerExecution.GolangTest do
Mix.Shell.Process.flush()

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

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

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

Expand Down
2 changes: 1 addition & 1 deletion services/app/apps/runner/lib/runner/languages.ex
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ defmodule Runner.Languages do
checker_file_name: "checker.go",
docker_image: "codebattle/golang:1.22.1",
solution_template: """
package main;
package main
// import "fmt"

func solution(<%= arguments %>)<%= expected %> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ defmodule Runner.SolutionGeneratorTest do
"""

@golang_expected """
package main;
package main
// import "fmt"

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 {
Expand Down