Skip to content

Commit

Permalink
ExprStrOps: add str.substring(0, 0) case
Browse files Browse the repository at this point in the history
  • Loading branch information
generalmimon committed Aug 27, 2024
1 parent 9f78281 commit b70a99d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions formats/expr_str_ops.ksy
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ instances:
value: one.substring(2, 5)
one_substr_3_to_3:
value: one.substring(3, 3)
one_substr_0_to_0:
value: one.substring(0, 0)

two:
value: '"0123456789"'
Expand Down
2 changes: 2 additions & 0 deletions spec/ks/expr_str_ops.kst
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ asserts:
expected: '"o|b"'
- actual: one_substr_3_to_3
expected: '""'
- actual: one_substr_0_to_0
expected: '""'

- actual: two
expected: '"0123456789"'
Expand Down

0 comments on commit b70a99d

Please sign in to comment.