Beispiel #1
0
 public void Step1()
 {
     MalStepsRunner.ExecuteTest("../../../MalSteps/step1_read_print.mal", verbose: this.verbose, (text, env) => Reader.ReadText(text)
                                .Pipe(mal => Printer.PrintStr(mal, true))
                                , MalStepsRunner.Option.Deferrable, MalStepsRunner.Option.Optional
                                );
 }
Beispiel #2
0
 private void ExecuteFile(string fileName)
 {
     MalStepsRunner.ExecuteTest($"../../../MalSteps/{fileName}", verbose: this.verbose, (text, env) => Reader.ReadText(text)
                                .Pipe(mal => mal != null ? EvalM.Eval(mal !, env) : null)
                                .Pipe(mal => Printer.PrintStr(mal, true))
                                , MalStepsRunner.Option.Deferrable, MalStepsRunner.Option.Optional
                                );
 }
Beispiel #3
0
        public void Step0()
        {
            // var steps = MalStepsRunner.ReadTestCases("../../../MalSteps/step0_repl.mal");
            // Console.WriteLine(string.Join(Environment.NewLine,
            //     steps.Select(t => (t.Input, string.Join(",", t.Output), string.Join(",", t.Options)))));

            MalStepsRunner.ExecuteTest("../../../MalSteps/step0_repl.mal", verbose: this.verbose, (text, env) => text);
        }