Ejemplo n.º 1
0
def initialize(sandbox=True):
    # TODO: sandbox is ignored
    if 'fsc' not in env['runtime']:
        return False
    if not os.path.isfile(env['runtime']['fsc']):
        return False
    return test_executor('FS', Executor, 'printfn "Hello, World!"')
Ejemplo n.º 2
0
def initialize(sandbox=True):
    # TODO: sandbox is ignored
    if "fsc" not in env["runtime"]:
        return False
    if not os.path.isfile(env["runtime"]["fsc"]):
        return False
    return test_executor("FS", Executor, 'printfn "Hello, World!"')
Ejemplo n.º 3
0
Archivo: CS.py Proyecto: WallE256/judge
def initialize():
    if 'csc' not in env['runtime']:
        return False
    if not os.path.isfile(env['runtime']['csc']):
        return False
    return test_executor('CS', Executor, '''\
using System;

class test {
    public static void Main(string[] args) {
        Console.WriteLine("Hello, World!");
    }
}''')
Ejemplo n.º 4
0
def initialize(sandbox=True):
    # TODO: sandbox is ignored
    if 'csc' not in env['runtime']:
        return False
    if not os.path.isfile(env['runtime']['csc']):
        return False
    return test_executor('CS', Executor, '''\
using System;

class test {
    public static void Main(string[] args) {
        Console.WriteLine("Hello, World!");
    }
}''')
Ejemplo n.º 5
0
def initialize():
    if 'fsc' not in env['runtime']:
        return False
    if not os.path.isfile(env['runtime']['fsc']):
        return False
    return test_executor('FS', Executor, 'printfn "Hello, World!"')