diff options
Diffstat (limited to 'tests/misc/test_chained.zc')
| -rw-r--r-- | tests/misc/test_chained.zc | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/misc/test_chained.zc b/tests/misc/test_chained.zc new file mode 100644 index 0000000..e758db7 --- /dev/null +++ b/tests/misc/test_chained.zc @@ -0,0 +1,14 @@ + +import "std/string.zc" + +test "test_chained" { + var s = String::from("hello"); + var opt = s.find('e'); + if opt.is_some() { + "Found at index: {opt.unwrap()}"; + } + + if s.find('l').is_some() { + "Chained call works!"; + } +} |
