style: minor fixes
This commit is contained in:
		
							parent
							
								
									2d019878a5
								
							
						
					
					
						commit
						6a814bd177
					
				
					 4 changed files with 4 additions and 11 deletions
				
			
		|  | @ -12,7 +12,6 @@ struct FailedAssertion: std::exception | |||
| 	} | ||||
| }; | ||||
| 
 | ||||
| 
 | ||||
| template<typename Expression_T, typename... Args> | ||||
| constexpr void ensure(Expression_T &&expression, std::format_string<Args...> fmt, Args &&...args) | ||||
| { | ||||
|  |  | |||
|  | @ -12,23 +12,18 @@ concept printable = requires(std::ostream &os, T t) { | |||
| 	{ os << t } -> std::same_as<std::ostream &>; | ||||
| }; | ||||
| 
 | ||||
| template< | ||||
|     class T, | ||||
|     auto expr = | ||||
|         [] { | ||||
|         }> | ||||
| // clang-format off
 | ||||
| template<class T, auto expr = []{}> | ||||
| concept test = requires(T test) { | ||||
| 	{ test.name } -> printable; | ||||
| 
 | ||||
| 	{ test = expr } -> std::same_as<void>; | ||||
| }; | ||||
| // clang-format on
 | ||||
| 
 | ||||
| } // namespace concepts
 | ||||
| 
 | ||||
| 
 | ||||
| namespace details { | ||||
| 
 | ||||
| 
 | ||||
| class Registry | ||||
| { | ||||
| public: | ||||
|  |  | |||
|  | @ -23,7 +23,7 @@ lt::test::Suite raii = [] { | |||
| 	}; | ||||
| 
 | ||||
| 	lt::test::Case { "plenty" } = [] { | ||||
| 		for (auto i : std::views::iota(0, 100'001)) | ||||
| 		for (auto idx : std::views::iota(0, 100'001)) | ||||
| 		{ | ||||
| 			Timer {}; | ||||
| 		} | ||||
|  |  | |||
|  | @ -6,7 +6,6 @@ namespace lt { | |||
| 
 | ||||
| class Event; | ||||
| 
 | ||||
| 
 | ||||
| class Window | ||||
| { | ||||
| public: | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue