diff options
| author | Sophia Pearson <codergal89@gmail.com> | 2022-09-05 20:35:53 +0200 |
|---|---|---|
| committer | Sophia Pearson <codergal89@gmail.com> | 2022-09-05 20:35:53 +0200 |
| commit | f20bd89dc4a7bf14a88b1effcaa1887b29314525 (patch) | |
| tree | d114787f68efd2a7d61d95fa9c84e8e5d69a7c11 /addons/gut/test_collector.gd | |
| parent | 1b477b62f8be8c546a35dbd1d2688ebf623c496f (diff) | |
| download | texty-f20bd89dc4a7bf14a88b1effcaa1887b29314525.tar.xz texty-f20bd89dc4a7bf14a88b1effcaa1887b29314525.zip | |
gui: split GUI into Terminal components
Diffstat (limited to 'addons/gut/test_collector.gd')
| -rw-r--r-- | addons/gut/test_collector.gd | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/addons/gut/test_collector.gd b/addons/gut/test_collector.gd index c8f5d8b..9fe3199 100644 --- a/addons/gut/test_collector.gd +++ b/addons/gut/test_collector.gd @@ -16,6 +16,14 @@ class Test: # if the test has been marked pending at anypont during # execution. var pending = false + # the line number when the test fails + var line_number = -1 + + func did_pass(): + return passed and !pending and assert_count > 0 + + func did_assert(): + return assert_count > 0 or pending # ------------------------------------------------------------------------------ |
