* 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>
11 lines
205 B
Plaintext
11 lines
205 B
Plaintext
---
|
|
source: kcl-lib/src/simulation_tests.rs
|
|
description: Result of unparsing kw_fn_with_defaults.kcl
|
|
---
|
|
fn increment(@x, by? = 1) {
|
|
return x + by
|
|
}
|
|
|
|
two = increment(1)
|
|
twentyOne = increment(1, by = 20)
|