v2 / vlib / v / debug / tests / option_unwrap.expect
11 lines · 10 sloc · 233 bytes · 5310c102a6b62144bc08274884ca3e681ceb1296
Raw
1#!/usr/bin/env expect
2source "common.tcl"
3
4expect "Break on * option_unwrap in ${test_file}:4\r\n"
5expect "${test_file}:4 vdbg> "
6send "p a\n"
7expect "a = Option(123) (?int)"
8send "p b\n"
9expect "b = 123 (int)"
10send "q\n"
11expect eof
12