Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
J
java-submission-tester
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Merge Requests
0
Merge Requests
0
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Dominic Althaus
java-submission-tester
Commits
7aa8099f
Commit
7aa8099f
authored
Jun 30, 2019
by
Gian Saß
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix encoding errors when writing output file
parent
1031c8a9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
java_input_output_junit_test_runner.rb
..._submission_tester/java_input_output_junit_test_runner.rb
+1
-1
No files found.
lib/java_submission_tester/java_input_output_junit_test_runner.rb
View file @
7aa8099f
...
...
@@ -76,7 +76,7 @@ module JavaSubmissionTester
Tempfile
.
open
(
"input-
#{
task
.
id
}
"
)
do
|
input_file
|
input_file
.
write
input
.
input
.
read
()
Tempfile
.
open
(
"output-
#{
submission
.
id
}
"
)
do
|
output_file
|
output_file
.
write
submission
.
output
.
read
()
output_file
.
write
submission
.
output
.
read
()
.
force_encoding
(
"UTF-8"
)
puts
"input file:"
,
input_file
.
read
()
puts
"output file:"
,
output_file
.
read
()
result
=
run_json_reporter
(
working_dir
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment