|
From: <Or...@us...> - 2008-08-17 20:33:32
|
Revision: 327
http://acmcontester.svn.sourceforge.net/acmcontester/?rev=327&view=rev
Author: Oracle_
Date: 2008-08-17 20:33:42 +0000 (Sun, 17 Aug 2008)
Log Message:
-----------
Fixed bug.
Modified Paths:
--------------
ACMServer/trunk/sharp tester/Checker/Checker/Checker.cs
Modified: ACMServer/trunk/sharp tester/Checker/Checker/Checker.cs
===================================================================
--- ACMServer/trunk/sharp tester/Checker/Checker/Checker.cs 2008-08-17 20:30:41 UTC (rev 326)
+++ ACMServer/trunk/sharp tester/Checker/Checker/Checker.cs 2008-08-17 20:33:42 UTC (rev 327)
@@ -27,7 +27,7 @@
{
this.input = input;
this.output = output;
- this.correctOutput = output;
+ this.correctOutput = correctOutput;
this.scriptPath = scriptPath;
}
@@ -36,10 +36,11 @@
public CheckResult Check()
{
- Script scr = Script.Compile(File.ReadAllText(scriptPath));
- scr.AddBuildInObject(input);
- scr.AddBuildInObject(output);
- scr.AddBuildInObject(correctOutput);
+ string SRC = File.ReadAllText(scriptPath);
+ Script scr = Script.Compile(SRC);
+ scr.AddObject("input", input);
+ scr.AddObject("output", output);
+ scr.AddObject("correctOutput",correctOutput);
scr.Execute();
string result = scr.Lookup("result").ToString();
return (CheckResult)Enum.Parse(typeof(CheckResult), result);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|