# Exercise: Splitting Strings
#
# `string.split` breaks a string into a list at each delimiter.
#
# Stack effect: ( str delimiter -- List )
#
# Example:
#   "a,b,c" "," string.split   # [ "a" "b" "c" ]
#   "one two three" " " string.split   # [ "one" "two" "three" ]
#
# Your task: Split "red:green:blue" by ":"
# (We'll learn more about lists in chapter 15)
# When done, delete the marker line below.

# I AM NOT DONE

: test-split ( -- )
    # Split "red:green:blue" using ":" as the delimiter.
    # Your code here.
    list-of  # placeholder empty list
    # Do not edit below this line
    list.length 3 test.assert-eq
;
