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

Fix pass comparison.

parent 48a29fe8
No related branches found
No related tags found
No related merge requests found
...@@ -133,7 +133,7 @@ else { ...@@ -133,7 +133,7 @@ else {
var pct = Math.floor(correct/(correct+wrong)*100); var pct = Math.floor(correct/(correct+wrong)*100);
write('<h1>'+pct+'% '); write('<h1>'+pct+'% ');
if(pct > test.pass) { if(pct >= test.pass) {
write('YOU PASSED'); write('YOU PASSED');
if(test.honours != undefined && pct >= test.honours) if(test.honours != undefined && pct >= test.honours)
write('WITH 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