-
-
Notifications
You must be signed in to change notification settings - Fork 670
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* [tests] start on porting display tests to utest * [tests] fix position * dodge utest problem * [tests] green * [tests] need utest earlier * [tests] avoid utest variance problem
- Loading branch information
Showing
15 changed files
with
41 additions
and
93 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -117,3 +117,4 @@ tests/sourcemaps/bin | |
/*_plugin.ml | ||
tests/benchs/export/ | ||
tests/benchs/dump/ | ||
tests/display/.unittest/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
-p src | ||
--main Main | ||
-lib utest | ||
--interp | ||
-D use-rtti-doc | ||
# -D test=Issue7877 | ||
-D use-rtti-doc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,5 @@ | ||
class Main { | ||
static function main() { | ||
var tests = Macro.getCases("cases"); | ||
var numTests = 0; | ||
var numFailures = 0; | ||
for (test in tests) { | ||
try { | ||
Sys.print(test.name); | ||
var result = test.exec.run(); | ||
numTests += result.numTests; | ||
numFailures += result.numFailures; | ||
Sys.println(' ${result.numTests} tests, ${result.numFailures} failures'); | ||
} catch(e:DisplayTestContext.HaxeInvocationException) { | ||
Sys.println("Error: " + e.message); | ||
Sys.println("Field name: " + e.fieldName); | ||
Sys.println("Arguments: " + e.arguments.join(" ")); | ||
Sys.println("Source: " + e.source); | ||
numTests++; | ||
numFailures++; | ||
} | ||
} | ||
Sys.println('Finished with $numTests tests, $numFailures failures'); | ||
Sys.exit(numFailures == 0 ? 0 : 1); | ||
utest.UTest.run(Macro.getCases("cases")); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,5 +11,6 @@ class Issue7082 extends DisplayTestCase { | |
**/ | ||
function test() { | ||
fields(pos(1)); | ||
eq(true, true); // TODO | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,6 @@ class IssueTemplate extends DisplayTestCase { | |
} | ||
**/ | ||
function test() { | ||
|
||
eq(true, true); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters