v2 / vlib / v / debug / tests / interface_var.expect
16 lines · 15 sloc · 434 bytes · f0d53008c5f4281797f86ab2b4e0f30610b5379a
Raw
1#!/usr/bin/env expect
2source "common.tcl"
3
4expect "Break on * interface_var in ${test_file}:14\r\n"
5expect "${test_file}:14 vdbg> "
6send "p a\n"
7expect "a = Test{\r\n a: MySum(true)"
8send "c\n"
9expect "Break on * struct_to_interface_field in ${test_file}:33\r\n"
10expect "${test_file}:33 vdbg> "
11send "p t1\n"
12expect "t1 = Test{\r\n a: MySum(false)"
13send "p t2\n"
14expect "t2 = Test{\r\n a: MySum(false)"
15send "q\n"
16expect eof
17