Skip to content

Commit

Permalink
add translation
Browse files Browse the repository at this point in the history
  • Loading branch information
inteon committed Jul 6, 2022
1 parent 6b46101 commit dff9065
Show file tree
Hide file tree
Showing 14 changed files with 86 additions and 80 deletions.
42 changes: 20 additions & 22 deletions judge/translator.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,26 +22,12 @@ class Language(Enum):
class Text(Enum):
"""Text message content enum."""

ADD_A_SEMICOLON = auto()
INVALID_SINGLE_QUOTE_TABLE_NAME = auto()
SUBMISSION_WRONG_QUERY_TYPE = auto()
SUBMISSION_FORBIDDEN_SYMBOLREGEX = auto()
SUBMISSION_MANDATORY_SYMBOLREGEX = auto()
SUBMISSION_FORBIDDEN_FULLREGEX = auto()
SUBMISSION_MANDATORY_FULLREGEX = auto()
SUBMISSION_CONTAINS_MORE_QUERIES = auto()
SUBMISSION_CONTAINS_LESS_QUERIES = auto()
DIFFERENT_ROW_COUNT = auto()
DIFFERENT_COLUMN_COUNT = auto()
COMPARING_QUERY_OUTPUT_CSV_CONTENT = auto()
COMPARING_QUERY_OUTPUT_TYPES = auto()
QUERY_SHOULD_ORDER_ROWS = auto()
QUERY_SHOULD_NOT_ORDER_ROWS = auto()
ROWS_ARE_BEING_ORDERED = auto()
ROWS_ARE_NOT_BEING_ORDERED = auto()
CORRECT_ROWS_WRONG_ORDER = auto()
COMPARING_TABLE_LAYOUT = auto()
COMPARING_TABLE_CONTENT = auto()
COMPARING_IMAGES = auto()
SOLUTION_EXECUTION_ERROR = auto()
SUBMISSION_EXECUTION_ERROR = auto()
SOLUTION_TITLE = auto()
SUBMISSION_TITLE = auto()
FOREGROUND_PIXELS_CORRECT = auto()

def __init__(self, language: Language) -> None:
"""Create Translator.
Expand Down Expand Up @@ -136,9 +122,21 @@ def translate(self, message: Text, **kwargs: Any) -> str:

text_translations = {
Language.EN: {
Text.ADD_A_SEMICOLON: "Add a semicolon ';' at the end of each SQL query.",
Text.COMPARING_IMAGES: "Comparing images",
Text.SOLUTION_EXECUTION_ERROR: "Error executing solution script:\n {error}",
Text.SUBMISSION_EXECUTION_ERROR: "Error executing submission script:\n {error}",
Text.SOLUTION_TITLE: "Submission:",
Text.SUBMISSION_TITLE: "Solution:",
Text.FOREGROUND_PIXELS_CORRECT: "{correct_pixels}/{total_pixels} "
"({fraction:.1%}) visible pixels correct",
},
Language.NL: {
Text.ADD_A_SEMICOLON: "Voeg een puntkomma ';' toe aan het einde van elke SQL query.",
Text.COMPARING_IMAGES: "Afbeeldingen vergelijken",
Text.SOLUTION_EXECUTION_ERROR: "Error bij het uitvoeren van het oplossingsscript:\n {error}",
Text.SUBMISSION_EXECUTION_ERROR: "Error bij het uitvoeren van het ingediende script:\n {error}",
Text.SOLUTION_TITLE: "Indiening:",
Text.SUBMISSION_TITLE: "Oplossing:",
Text.FOREGROUND_PIXELS_CORRECT: "{correct_pixels}/{total_pixels} "
"({fraction:.1%}) zichtbare pixels correct",
},
}
6 changes: 3 additions & 3 deletions tests/e2e_stdout/test-turtle-judge/oef1_dir_read.stdout
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
}
{
"command": "start-tab",
"title": "Comparing PNGs"
"title": "Afbeeldingen vergelijken"
}
{
"command": "start-context"
Expand All @@ -18,8 +18,8 @@
{
"command": "append-message",
"message": {
"description": "Error executing submission script: ''NoneType' object is not callable'.",
"format": "text"
"description": "Error bij het uitvoeren van het oplossingsscript:\n 'NoneType' object is not callable",
"format": "code"
}
}
{
Expand Down
6 changes: 3 additions & 3 deletions tests/e2e_stdout/test-turtle-judge/oef1_error.stdout
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
}
{
"command": "start-tab",
"title": "Comparing PNGs"
"title": "Afbeeldingen vergelijken"
}
{
"command": "start-context"
Expand All @@ -18,8 +18,8 @@
{
"command": "append-message",
"message": {
"description": "Error executing submission script: 'name 'i' is not defined'.",
"format": "text"
"description": "Error bij het uitvoeren van het oplossingsscript:\n name 'i' is not defined",
"format": "code"
}
}
{
Expand Down
6 changes: 3 additions & 3 deletions tests/e2e_stdout/test-turtle-judge/oef1_exit.stdout
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
}
{
"command": "start-tab",
"title": "Comparing PNGs"
"title": "Afbeeldingen vergelijken"
}
{
"command": "start-context"
Expand All @@ -18,8 +18,8 @@
{
"command": "append-message",
"message": {
"description": "Error executing submission script: '1'.",
"format": "text"
"description": "Error bij het uitvoeren van het oplossingsscript:\n 1",
"format": "code"
}
}
{
Expand Down
8 changes: 4 additions & 4 deletions tests/e2e_stdout/test-turtle-judge/oef1_noImport.stdout
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
}
{
"command": "start-tab",
"title": "Comparing PNGs"
"title": "Afbeeldingen vergelijken"
}
{
"command": "start-context"
Expand All @@ -18,14 +18,14 @@
{
"command": "start-test",
"description": {
"description": "<div style=\"display:inline-block;width:50%;\"> <p style=\"padding:10px\">Submission:</p> <img alt=\"submission result\" style=\"width:98%;background-color:#fff\" src=\"data:image/svg+xml;base64,PHN2ZyBiYXNlUHJvZmlsZT0iZnVsbCIgaGVpZ2h0PSIyNTBweCIgdmVyc2lvbj0iMS4xIiB3aWR0aD0iNDAwcHgiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6ZXY9Imh0dHA6Ly93d3cudzMub3JnLzIwMDEveG1sLWV2ZW50cyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPjxkZWZzPjxjbGlwUGF0aCBpZD0iYm9yZGVyX2NsaXAiPjxyZWN0IGhlaWdodD0iMjUwIiB3aWR0aD0iNDAwIiB4PSIwIiB5PSIwIiAvPjwvY2xpcFBhdGg+PC9kZWZzPjwvc3ZnPg==\" /> </div> <div style=\"display:inline-block;float:right;width:50%;\"> <p style=\"padding:10px\">Solution:</p> <img alt=\"solution result\" style=\"width:98%;background-color:#fff\" src=\"data:image/svg+xml;base64,PHN2ZyBiYXNlUHJvZmlsZT0iZnVsbCIgaGVpZ2h0PSIyNTBweCIgdmVyc2lvbj0iMS4xIiB3aWR0aD0iNDAwcHgiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6ZXY9Imh0dHA6Ly93d3cudzMub3JnLzIwMDEveG1sLWV2ZW50cyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPjxkZWZzPjxjbGlwUGF0aCBpZD0iYm9yZGVyX2NsaXAiPjxyZWN0IGhlaWdodD0iMjUwIiB3aWR0aD0iNDAwIiB4PSIwIiB5PSIwIiAvPjwvY2xpcFBhdGg+PC9kZWZzPjxwb2x5bGluZSBjbGlwLXBhdGg9InVybCgjYm9yZGVyX2NsaXApIiBmaWxsPSJub25lIiBwb2ludHM9IjIwMC4wLDEyNS4wIDI1MC4wLDEyNS4wIDI1MC4wLDc1LjAgMjAwLjAsNzUuMCAyMDAuMCwxMjUuMCIgc3Ryb2tlPSJibGFjayIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2Utd2lkdGg9IjEiIC8+PC9zdmc+\" /> </div>",
"description": "<div style=\"display:inline-block;width:50%;\"> <p style=\"padding:10px\">Oplossing:</p> <img alt=\"submission result\" style=\"width:98%;background-color:#fff\" src=\"data:image/svg+xml;base64,PHN2ZyBiYXNlUHJvZmlsZT0iZnVsbCIgaGVpZ2h0PSIyNTBweCIgdmVyc2lvbj0iMS4xIiB3aWR0aD0iNDAwcHgiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6ZXY9Imh0dHA6Ly93d3cudzMub3JnLzIwMDEveG1sLWV2ZW50cyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPjxkZWZzPjxjbGlwUGF0aCBpZD0iYm9yZGVyX2NsaXAiPjxyZWN0IGhlaWdodD0iMjUwIiB3aWR0aD0iNDAwIiB4PSIwIiB5PSIwIiAvPjwvY2xpcFBhdGg+PC9kZWZzPjwvc3ZnPg==\" /> </div> <div style=\"display:inline-block;float:right;width:50%;\"> <p style=\"padding:10px\">Indiening:</p> <img alt=\"solution result\" style=\"width:98%;background-color:#fff\" src=\"data:image/svg+xml;base64,PHN2ZyBiYXNlUHJvZmlsZT0iZnVsbCIgaGVpZ2h0PSIyNTBweCIgdmVyc2lvbj0iMS4xIiB3aWR0aD0iNDAwcHgiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6ZXY9Imh0dHA6Ly93d3cudzMub3JnLzIwMDEveG1sLWV2ZW50cyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPjxkZWZzPjxjbGlwUGF0aCBpZD0iYm9yZGVyX2NsaXAiPjxyZWN0IGhlaWdodD0iMjUwIiB3aWR0aD0iNDAwIiB4PSIwIiB5PSIwIiAvPjwvY2xpcFBhdGg+PC9kZWZzPjxwb2x5bGluZSBjbGlwLXBhdGg9InVybCgjYm9yZGVyX2NsaXApIiBmaWxsPSJub25lIiBwb2ludHM9IjIwMC4wLDEyNS4wIDI1MC4wLDEyNS4wIDI1MC4wLDc1LjAgMjAwLjAsNzUuMCAyMDAuMCwxMjUuMCIgc3Ryb2tlPSJibGFjayIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2Utd2lkdGg9IjEiIC8+PC9zdmc+\" /> </div>",
"format": "html"
},
"expected": "400/400 (100.0%) foreground pixels correct"
"expected": "400/400 (100.0%) zichtbare pixels correct"
}
{
"command": "close-test",
"generated": "0/400 (0.0%) foreground pixels correct",
"generated": "0/400 (0.0%) zichtbare pixels correct",
"status": {
"enum": "wrong",
"human": "Test gefaald"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
}
{
"command": "start-tab",
"title": "Comparing PNGs"
"title": "Afbeeldingen vergelijken"
}
{
"command": "start-context"
Expand All @@ -18,14 +18,14 @@
{
"command": "start-test",
"description": {
"description": "<div style=\"display:inline-block;width:50%;\"> <p style=\"padding:10px\">Submission:</p> <img alt=\"submission result\" style=\"width:98%;background-color:#fff\" src=\"data:image/svg+xml;base64,PHN2ZyBiYXNlUHJvZmlsZT0iZnVsbCIgaGVpZ2h0PSIyNTBweCIgdmVyc2lvbj0iMS4xIiB3aWR0aD0iNDAwcHgiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6ZXY9Imh0dHA6Ly93d3cudzMub3JnLzIwMDEveG1sLWV2ZW50cyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPjxkZWZzPjxjbGlwUGF0aCBpZD0iYm9yZGVyX2NsaXAiPjxyZWN0IGhlaWdodD0iMjUwIiB3aWR0aD0iNDAwIiB4PSIwIiB5PSIwIiAvPjwvY2xpcFBhdGg+PC9kZWZzPjxyZWN0IGZpbGw9IiMwMDAwZmYiIGhlaWdodD0iMTAwJSIgd2lkdGg9IjEwMCUiIHg9IjAiIHk9IjAiIC8+PC9zdmc+\" /> </div> <div style=\"display:inline-block;float:right;width:50%;\"> <p style=\"padding:10px\">Solution:</p> <img alt=\"solution result\" style=\"width:98%;background-color:#fff\" src=\"data:image/svg+xml;base64,PHN2ZyBiYXNlUHJvZmlsZT0iZnVsbCIgaGVpZ2h0PSIyNTBweCIgdmVyc2lvbj0iMS4xIiB3aWR0aD0iNDAwcHgiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6ZXY9Imh0dHA6Ly93d3cudzMub3JnLzIwMDEveG1sLWV2ZW50cyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPjxkZWZzPjxjbGlwUGF0aCBpZD0iYm9yZGVyX2NsaXAiPjxyZWN0IGhlaWdodD0iMjUwIiB3aWR0aD0iNDAwIiB4PSIwIiB5PSIwIiAvPjwvY2xpcFBhdGg+PC9kZWZzPjxwb2x5bGluZSBjbGlwLXBhdGg9InVybCgjYm9yZGVyX2NsaXApIiBmaWxsPSJub25lIiBwb2ludHM9IjIwMC4wLDEyNS4wIDI1MC4wLDEyNS4wIDI1MC4wLDc1LjAgMjAwLjAsNzUuMCAyMDAuMCwxMjUuMCIgc3Ryb2tlPSJibGFjayIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2Utd2lkdGg9IjEiIC8+PC9zdmc+\" /> </div>",
"description": "<div style=\"display:inline-block;width:50%;\"> <p style=\"padding:10px\">Oplossing:</p> <img alt=\"submission result\" style=\"width:98%;background-color:#fff\" src=\"data:image/svg+xml;base64,PHN2ZyBiYXNlUHJvZmlsZT0iZnVsbCIgaGVpZ2h0PSIyNTBweCIgdmVyc2lvbj0iMS4xIiB3aWR0aD0iNDAwcHgiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6ZXY9Imh0dHA6Ly93d3cudzMub3JnLzIwMDEveG1sLWV2ZW50cyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPjxkZWZzPjxjbGlwUGF0aCBpZD0iYm9yZGVyX2NsaXAiPjxyZWN0IGhlaWdodD0iMjUwIiB3aWR0aD0iNDAwIiB4PSIwIiB5PSIwIiAvPjwvY2xpcFBhdGg+PC9kZWZzPjxyZWN0IGZpbGw9IiMwMDAwZmYiIGhlaWdodD0iMTAwJSIgd2lkdGg9IjEwMCUiIHg9IjAiIHk9IjAiIC8+PC9zdmc+\" /> </div> <div style=\"display:inline-block;float:right;width:50%;\"> <p style=\"padding:10px\">Indiening:</p> <img alt=\"solution result\" style=\"width:98%;background-color:#fff\" src=\"data:image/svg+xml;base64,PHN2ZyBiYXNlUHJvZmlsZT0iZnVsbCIgaGVpZ2h0PSIyNTBweCIgdmVyc2lvbj0iMS4xIiB3aWR0aD0iNDAwcHgiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6ZXY9Imh0dHA6Ly93d3cudzMub3JnLzIwMDEveG1sLWV2ZW50cyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPjxkZWZzPjxjbGlwUGF0aCBpZD0iYm9yZGVyX2NsaXAiPjxyZWN0IGhlaWdodD0iMjUwIiB3aWR0aD0iNDAwIiB4PSIwIiB5PSIwIiAvPjwvY2xpcFBhdGg+PC9kZWZzPjxwb2x5bGluZSBjbGlwLXBhdGg9InVybCgjYm9yZGVyX2NsaXApIiBmaWxsPSJub25lIiBwb2ludHM9IjIwMC4wLDEyNS4wIDI1MC4wLDEyNS4wIDI1MC4wLDc1LjAgMjAwLjAsNzUuMCAyMDAuMCwxMjUuMCIgc3Ryb2tlPSJibGFjayIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2Utd2lkdGg9IjEiIC8+PC9zdmc+\" /> </div>",
"format": "html"
},
"expected": "400/400 (100.0%) foreground pixels correct"
"expected": "400/400 (100.0%) zichtbare pixels correct"
}
{
"command": "close-test",
"generated": "0/100000 (0.0%) foreground pixels correct",
"generated": "0/100000 (0.0%) zichtbare pixels correct",
"status": {
"enum": "wrong",
"human": "Test gefaald"
Expand Down
8 changes: 4 additions & 4 deletions tests/e2e_stdout/test-turtle-judge/oef1_print.stdout
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
}
{
"command": "start-tab",
"title": "Comparing PNGs"
"title": "Afbeeldingen vergelijken"
}
{
"command": "start-context"
Expand All @@ -18,14 +18,14 @@
{
"command": "start-test",
"description": {
"description": "<div style=\"display:inline-block;width:50%;\"> <p style=\"padding:10px\">Submission:</p> <img alt=\"submission result\" style=\"width:98%;background-color:#fff\" src=\"data:image/svg+xml;base64,PHN2ZyBiYXNlUHJvZmlsZT0iZnVsbCIgaGVpZ2h0PSIyNTBweCIgdmVyc2lvbj0iMS4xIiB3aWR0aD0iNDAwcHgiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6ZXY9Imh0dHA6Ly93d3cudzMub3JnLzIwMDEveG1sLWV2ZW50cyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPjxkZWZzPjxjbGlwUGF0aCBpZD0iYm9yZGVyX2NsaXAiPjxyZWN0IGhlaWdodD0iMjUwIiB3aWR0aD0iNDAwIiB4PSIwIiB5PSIwIiAvPjwvY2xpcFBhdGg+PC9kZWZzPjxwb2x5bGluZSBjbGlwLXBhdGg9InVybCgjYm9yZGVyX2NsaXApIiBmaWxsPSJub25lIiBwb2ludHM9IjIwMC4wLDEyNS4wIDI1MC4wLDEyNS4wIDI1MC4wLDc1LjAgMjAwLjAsNzUuMCAyMDAuMCwxMjUuMCIgc3Ryb2tlPSJibGFjayIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2Utd2lkdGg9IjEiIC8+PC9zdmc+\" /> </div> <div style=\"display:inline-block;float:right;width:50%;\"> <p style=\"padding:10px\">Solution:</p> <img alt=\"solution result\" style=\"width:98%;background-color:#fff\" src=\"data:image/svg+xml;base64,PHN2ZyBiYXNlUHJvZmlsZT0iZnVsbCIgaGVpZ2h0PSIyNTBweCIgdmVyc2lvbj0iMS4xIiB3aWR0aD0iNDAwcHgiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6ZXY9Imh0dHA6Ly93d3cudzMub3JnLzIwMDEveG1sLWV2ZW50cyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPjxkZWZzPjxjbGlwUGF0aCBpZD0iYm9yZGVyX2NsaXAiPjxyZWN0IGhlaWdodD0iMjUwIiB3aWR0aD0iNDAwIiB4PSIwIiB5PSIwIiAvPjwvY2xpcFBhdGg+PC9kZWZzPjxwb2x5bGluZSBjbGlwLXBhdGg9InVybCgjYm9yZGVyX2NsaXApIiBmaWxsPSJub25lIiBwb2ludHM9IjIwMC4wLDEyNS4wIDI1MC4wLDEyNS4wIDI1MC4wLDc1LjAgMjAwLjAsNzUuMCAyMDAuMCwxMjUuMCIgc3Ryb2tlPSJibGFjayIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2Utd2lkdGg9IjEiIC8+PC9zdmc+\" /> </div>",
"description": "<div style=\"display:inline-block;width:50%;\"> <p style=\"padding:10px\">Oplossing:</p> <img alt=\"submission result\" style=\"width:98%;background-color:#fff\" src=\"data:image/svg+xml;base64,PHN2ZyBiYXNlUHJvZmlsZT0iZnVsbCIgaGVpZ2h0PSIyNTBweCIgdmVyc2lvbj0iMS4xIiB3aWR0aD0iNDAwcHgiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6ZXY9Imh0dHA6Ly93d3cudzMub3JnLzIwMDEveG1sLWV2ZW50cyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPjxkZWZzPjxjbGlwUGF0aCBpZD0iYm9yZGVyX2NsaXAiPjxyZWN0IGhlaWdodD0iMjUwIiB3aWR0aD0iNDAwIiB4PSIwIiB5PSIwIiAvPjwvY2xpcFBhdGg+PC9kZWZzPjxwb2x5bGluZSBjbGlwLXBhdGg9InVybCgjYm9yZGVyX2NsaXApIiBmaWxsPSJub25lIiBwb2ludHM9IjIwMC4wLDEyNS4wIDI1MC4wLDEyNS4wIDI1MC4wLDc1LjAgMjAwLjAsNzUuMCAyMDAuMCwxMjUuMCIgc3Ryb2tlPSJibGFjayIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2Utd2lkdGg9IjEiIC8+PC9zdmc+\" /> </div> <div style=\"display:inline-block;float:right;width:50%;\"> <p style=\"padding:10px\">Indiening:</p> <img alt=\"solution result\" style=\"width:98%;background-color:#fff\" src=\"data:image/svg+xml;base64,PHN2ZyBiYXNlUHJvZmlsZT0iZnVsbCIgaGVpZ2h0PSIyNTBweCIgdmVyc2lvbj0iMS4xIiB3aWR0aD0iNDAwcHgiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6ZXY9Imh0dHA6Ly93d3cudzMub3JnLzIwMDEveG1sLWV2ZW50cyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPjxkZWZzPjxjbGlwUGF0aCBpZD0iYm9yZGVyX2NsaXAiPjxyZWN0IGhlaWdodD0iMjUwIiB3aWR0aD0iNDAwIiB4PSIwIiB5PSIwIiAvPjwvY2xpcFBhdGg+PC9kZWZzPjxwb2x5bGluZSBjbGlwLXBhdGg9InVybCgjYm9yZGVyX2NsaXApIiBmaWxsPSJub25lIiBwb2ludHM9IjIwMC4wLDEyNS4wIDI1MC4wLDEyNS4wIDI1MC4wLDc1LjAgMjAwLjAsNzUuMCAyMDAuMCwxMjUuMCIgc3Ryb2tlPSJibGFjayIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2Utd2lkdGg9IjEiIC8+PC9zdmc+\" /> </div>",
"format": "html"
},
"expected": "400/400 (100.0%) foreground pixels correct"
"expected": "400/400 (100.0%) zichtbare pixels correct"
}
{
"command": "close-test",
"generated": "400/400 (100.0%) foreground pixels correct",
"generated": "400/400 (100.0%) zichtbare pixels correct",
"status": {
"enum": "correct",
"human": "Alle testen geslaagd"
Expand Down
8 changes: 4 additions & 4 deletions tests/e2e_stdout/test-turtle-judge/oef1_sleep.stdout
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
}
{
"command": "start-tab",
"title": "Comparing PNGs"
"title": "Afbeeldingen vergelijken"
}
{
"command": "start-context"
Expand All @@ -18,14 +18,14 @@
{
"command": "start-test",
"description": {
"description": "<div style=\"display:inline-block;width:50%;\"> <p style=\"padding:10px\">Submission:</p> <img alt=\"submission result\" style=\"width:98%;background-color:#fff\" src=\"data:image/svg+xml;base64,PHN2ZyBiYXNlUHJvZmlsZT0iZnVsbCIgaGVpZ2h0PSIyNTBweCIgdmVyc2lvbj0iMS4xIiB3aWR0aD0iNDAwcHgiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6ZXY9Imh0dHA6Ly93d3cudzMub3JnLzIwMDEveG1sLWV2ZW50cyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPjxkZWZzPjxjbGlwUGF0aCBpZD0iYm9yZGVyX2NsaXAiPjxyZWN0IGhlaWdodD0iMjUwIiB3aWR0aD0iNDAwIiB4PSIwIiB5PSIwIiAvPjwvY2xpcFBhdGg+PC9kZWZzPjwvc3ZnPg==\" /> </div> <div style=\"display:inline-block;float:right;width:50%;\"> <p style=\"padding:10px\">Solution:</p> <img alt=\"solution result\" style=\"width:98%;background-color:#fff\" src=\"data:image/svg+xml;base64,PHN2ZyBiYXNlUHJvZmlsZT0iZnVsbCIgaGVpZ2h0PSIyNTBweCIgdmVyc2lvbj0iMS4xIiB3aWR0aD0iNDAwcHgiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6ZXY9Imh0dHA6Ly93d3cudzMub3JnLzIwMDEveG1sLWV2ZW50cyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPjxkZWZzPjxjbGlwUGF0aCBpZD0iYm9yZGVyX2NsaXAiPjxyZWN0IGhlaWdodD0iMjUwIiB3aWR0aD0iNDAwIiB4PSIwIiB5PSIwIiAvPjwvY2xpcFBhdGg+PC9kZWZzPjxwb2x5bGluZSBjbGlwLXBhdGg9InVybCgjYm9yZGVyX2NsaXApIiBmaWxsPSJub25lIiBwb2ludHM9IjIwMC4wLDEyNS4wIDI1MC4wLDEyNS4wIDI1MC4wLDc1LjAgMjAwLjAsNzUuMCAyMDAuMCwxMjUuMCIgc3Ryb2tlPSJibGFjayIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2Utd2lkdGg9IjEiIC8+PC9zdmc+\" /> </div>",
"description": "<div style=\"display:inline-block;width:50%;\"> <p style=\"padding:10px\">Oplossing:</p> <img alt=\"submission result\" style=\"width:98%;background-color:#fff\" src=\"data:image/svg+xml;base64,PHN2ZyBiYXNlUHJvZmlsZT0iZnVsbCIgaGVpZ2h0PSIyNTBweCIgdmVyc2lvbj0iMS4xIiB3aWR0aD0iNDAwcHgiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6ZXY9Imh0dHA6Ly93d3cudzMub3JnLzIwMDEveG1sLWV2ZW50cyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPjxkZWZzPjxjbGlwUGF0aCBpZD0iYm9yZGVyX2NsaXAiPjxyZWN0IGhlaWdodD0iMjUwIiB3aWR0aD0iNDAwIiB4PSIwIiB5PSIwIiAvPjwvY2xpcFBhdGg+PC9kZWZzPjwvc3ZnPg==\" /> </div> <div style=\"display:inline-block;float:right;width:50%;\"> <p style=\"padding:10px\">Indiening:</p> <img alt=\"solution result\" style=\"width:98%;background-color:#fff\" src=\"data:image/svg+xml;base64,PHN2ZyBiYXNlUHJvZmlsZT0iZnVsbCIgaGVpZ2h0PSIyNTBweCIgdmVyc2lvbj0iMS4xIiB3aWR0aD0iNDAwcHgiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6ZXY9Imh0dHA6Ly93d3cudzMub3JnLzIwMDEveG1sLWV2ZW50cyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPjxkZWZzPjxjbGlwUGF0aCBpZD0iYm9yZGVyX2NsaXAiPjxyZWN0IGhlaWdodD0iMjUwIiB3aWR0aD0iNDAwIiB4PSIwIiB5PSIwIiAvPjwvY2xpcFBhdGg+PC9kZWZzPjxwb2x5bGluZSBjbGlwLXBhdGg9InVybCgjYm9yZGVyX2NsaXApIiBmaWxsPSJub25lIiBwb2ludHM9IjIwMC4wLDEyNS4wIDI1MC4wLDEyNS4wIDI1MC4wLDc1LjAgMjAwLjAsNzUuMCAyMDAuMCwxMjUuMCIgc3Ryb2tlPSJibGFjayIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2Utd2lkdGg9IjEiIC8+PC9zdmc+\" /> </div>",
"format": "html"
},
"expected": "400/400 (100.0%) foreground pixels correct"
"expected": "400/400 (100.0%) zichtbare pixels correct"
}
{
"command": "close-test",
"generated": "0/400 (0.0%) foreground pixels correct",
"generated": "0/400 (0.0%) zichtbare pixels correct",
"status": {
"enum": "wrong",
"human": "Test gefaald"
Expand Down
Loading

0 comments on commit dff9065

Please sign in to comment.