Simple Unit Tests

version 1/130803 by Dannii Willis

  • Home page
  • Beginning
  • Previous
  • Next

  • Chapter - Output capturing

    To decide what indexed text is the captured output:
        let the result be an indexed text;
        stop capturing text;
        now the result is "[the captured text]";
        [ Strip whitespace at the beginning and end ]
        replace the regular expression "^\s+|\s+$" in the result with "";
        decide on the result;