* 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>
		
			
				
	
	
		
			15 lines
		
	
	
		
			215 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			215 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
---
 | 
						|
source: kcl-lib/src/simulation_tests.rs
 | 
						|
description: Result of unparsing kw_fn.kcl
 | 
						|
---
 | 
						|
fn increment(@x) {
 | 
						|
  return x + 1
 | 
						|
}
 | 
						|
 | 
						|
fn add(@x, delta) {
 | 
						|
  return x + delta
 | 
						|
}
 | 
						|
 | 
						|
two = increment(1)
 | 
						|
three = add(1, delta = 2)
 |