public void BoolInputOutput() { var(intIn, verifyIntIn) = BasicInputOutput.ToInput(new double[] { }); var(stringIn, verifyStringIn) = BasicInputOutput.ToInput(new string[] { }); var(boolIn, verifyBoolIn) = BasicInputOutput.ToInput(new bool[] { true }); var(intOut, verifyIntOut) = BasicInputOutput.ToOutput(new double[] { }); var(stringOut, verifyStringOut) = BasicInputOutput.ToOutput(new string[] { }); var(boolOut, verifyBoolOut) = BasicInputOutput.ToOutput(new bool[] { true }); Tac.Runner.Runner.Run("test", new[] { BasicInputOutput.Input(intIn, stringIn, boolIn), BasicInputOutput.Output(intOut, stringOut, boolOut) }, @" entry-point { new-empty > (in.read-bool) > (out.write-bool); };"); verifyIntIn(); verifyStringIn(); verifyBoolIn(); verifyIntOut(); verifyStringOut(); verifyBoolOut(); }
public void NumberInput() { var(intIn, verifyIntIn) = BasicInputOutput.ToInput(new double[] { 1.0 }); var(stringIn, verifyStringIn) = BasicInputOutput.ToInput(new string[] { }); var(boolIn, verifyBoolIn) = BasicInputOutput.ToInput(new bool[] { }); Tac.Runner.Runner.Run("test", new[] { BasicInputOutput.Input(intIn, stringIn, boolIn) }, @" entry-point { new-empty > (in.read-number); };"); verifyIntIn(); verifyStringIn(); verifyBoolIn(); }