mirror of
				https://github.com/eledio-devices/thirdparty-tinyexpr.git
				synced 2025-10-31 08:42:39 +01:00 
			
		
		
		
	Added test case for empty string.
This commit is contained in:
		
							
								
								
									
										2
									
								
								test.c
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								test.c
									
									
									
									
									
								
							| @@ -107,6 +107,7 @@ test_case cases[] = { | |||||||
|  |  | ||||||
|  |  | ||||||
| test_case errors[] = { | test_case errors[] = { | ||||||
|  |     {"", 1}, | ||||||
|     {"1+", 2}, |     {"1+", 2}, | ||||||
|     {"1)", 2}, |     {"1)", 2}, | ||||||
|     {"(1", 2}, |     {"(1", 2}, | ||||||
| @@ -123,6 +124,7 @@ test_case errors[] = { | |||||||
|  |  | ||||||
|  |  | ||||||
| const char *nans[] = { | const char *nans[] = { | ||||||
|  |     "", | ||||||
|     "1+", |     "1+", | ||||||
|     "1)", |     "1)", | ||||||
|     "(1", |     "(1", | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user