* Improve snapshot testing Signed-off-by: Nick Cameron <nrc@ncameron.org> * A snapshot a day keeps the bugs away! 📷🐛 * A snapshot a day keeps the bugs away! 📷🐛 --------- Signed-off-by: Nick Cameron <nrc@ncameron.org> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
		
			
				
	
	
		
			18 lines
		
	
	
		
			526 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			526 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
---
 | 
						|
source: kcl-lib/src/simulation_tests.rs
 | 
						|
description: Result of unparsing comparisons.kcl
 | 
						|
---
 | 
						|
assert(3 == 3, "equality")
 | 
						|
assert(3.0 == 3.0, "equality of floats")
 | 
						|
assert(3 != 4, "non-equality")
 | 
						|
assert(3.0 != 4.0, "non-equality of floats")
 | 
						|
assert(3 < 4, "lt")
 | 
						|
assert(3 <= 4, "lte but actually lt")
 | 
						|
assert(4 <= 4, "lte but actually eq")
 | 
						|
assert(4 > 3, "gt")
 | 
						|
assert(4 >= 3, "gte but actually gt")
 | 
						|
assert(3 >= 3, "gte but actually eq")
 | 
						|
 | 
						|
assert(0.0 == 0.0, "equality of zero")
 | 
						|
assert(0.0 == -0.0, "equality of zero and neg zero")
 |