v2 / vlib / v / debug / tests / comptime_variant.expect
13 lines · 12 sloc · 274 bytes · 9092d7fd647c8e8d2239da6bf5c8931b4400b592
Raw
1#!/usr/bin/env expect
2source "common.tcl"
3
4expect "Break on * comptime_variant in ${test_file}:6"
5expect "${test_file}:6 vdbg> "
6send "p arg\n"
7expect "arg = 0 (int)"
8send "c\n"
9expect "${test_file}:6 vdbg> "
10send "p arg\n"
11expect "arg = foo (string)"
12send "q\n"
13expect eof
14