# Exercise: String to Integer Conversion
#
# The `string->int` function parses a string as an integer.
# It returns (Int Bool) - the value and a success flag.
#
# Example:
#   "123" string->int    # Stack: ( 123 true )
#   "abc" string->int    # Stack: ( 0 false )
#
# Drop the Bool when you know parsing will succeed, or check it
# to handle errors gracefully.
#
# Your task: Parse the string "42" and double it.
#
# When done, delete the marker line below.

# I AM NOT DONE

: test-string-to-int ( -- )
    # Parse "42" to an integer (drop success Bool) and multiply by 2
    # Your code here
    0

    # Do not edit below this line
    84 test.assert-eq
;
