Skip to content
Snippets Groups Projects
Commit b4d26e34 authored by deuce's avatar deuce
Browse files

Fix pass comparison.

parent 48a29fe8
Branches
Tags
No related merge requests found
......@@ -133,7 +133,7 @@ else {
var pct = Math.floor(correct/(correct+wrong)*100);
write('<h1>'+pct+'% ');
if(pct > test.pass) {
if(pct >= test.pass) {
write('YOU PASSED');
if(test.honours != undefined && pct >= test.honours)
write('WITH HONOURS');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment