mirror of
				https://github.com/janet-lang/janet
				synced 2025-10-30 07:03:02 +00:00 
			
		
		
		
	Don't truncate test output on failures.
This commit is contained in:
		| @@ -2,6 +2,7 @@ | |||||||
| All notable changes to this project will be documented in this file. | All notable changes to this project will be documented in this file. | ||||||
|  |  | ||||||
| ## ??? - Unreleased | ## ??? - Unreleased | ||||||
|  | - Ctrl-C will now raise SIGINT. | ||||||
| - Allow quoted literals in the `match` macro to behave as expected in patterns. | - Allow quoted literals in the `match` macro to behave as expected in patterns. | ||||||
| - Fix windows net related bug for TCP servers. | - Fix windows net related bug for TCP servers. | ||||||
| - Allow evaluating ev streams with dofile. | - Allow evaluating ev streams with dofile. | ||||||
|   | |||||||
| @@ -14,11 +14,9 @@ | |||||||
|   (++ num-tests-run) |   (++ num-tests-run) | ||||||
|   (when x (++ num-tests-passed)) |   (when x (++ num-tests-passed)) | ||||||
|   (def str (string e)) |   (def str (string e)) | ||||||
|   (def truncated |  | ||||||
|     (if (> (length e) 40) (string (string/slice e 0 35) "...") (describe e))) |  | ||||||
|   (if x |   (if x | ||||||
|     (when is-verbose (eprintf "\e[32m✔\e[0m %s: %v" truncated x)) |     (when is-verbose (eprintf "\e[32m✔\e[0m %s: %v" (describe e) x)) | ||||||
|     (eprintf "\n\e[31m✘\e[0m %s: %v" truncated x)) |     (eprintf "\n\e[31m✘\e[0m %s: %v" (describe e) x)) | ||||||
|   x) |   x) | ||||||
|  |  | ||||||
| (defmacro assert-error | (defmacro assert-error | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Calvin Rose
					Calvin Rose