Skip to content

Commit

Permalink
There was already (broken) code in strings-test-suite to run the tests
Browse files Browse the repository at this point in the history
as an application.  I fixed it and am ditching strings-test-suite-app.
  • Loading branch information
cgay committed Feb 11, 2009
1 parent 97d1642 commit a315a02
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 31 deletions.
13 changes: 0 additions & 13 deletions tests/app-library.dylan

This file was deleted.

12 changes: 8 additions & 4 deletions tests/library.dylan
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,25 @@ Author: Carl Gay

define library strings-test-suite
use common-dylan;
use regular-expressions;
use strings;
use system;
use testworks;
use testworks-specs;
use regular-expressions;
export strings-test-suite;
end;

define module strings-test-suite
use common-dylan;
use strings;
use testworks;
use testworks-specs;
use regular-expressions,
import: { compile-regex,
match-group };
use strings;
use locators,
import: { locator-name,
<file-locator> };
use testworks;
use testworks-specs;
export strings-test-suite;
end;

3 changes: 0 additions & 3 deletions tests/strings-test-suite-app.dylan

This file was deleted.

3 changes: 0 additions & 3 deletions tests/strings-test-suite-app.lid

This file was deleted.

12 changes: 4 additions & 8 deletions tests/strings-test-suite.dylan
Original file line number Diff line number Diff line change
Expand Up @@ -315,17 +315,13 @@ end function-test substring;


define method main () => ()
let args = application-arguments();
let debug? = #f;
if (args.size >= 1)
if (equal?(args[0], "--debug", test: case-insensitive-equal?))
debug? := #t;
end;
let filename = locator-name(as(<file-locator>, application-name()));
if (split(filename, ".")[0] = "strings-test-suite")
run-test-application(strings-test-suite);
end;
perform-suite(strings-test-suite, debug?: debug?);
end method main;

begin
main();
main()
end;

0 comments on commit a315a02

Please sign in to comment.