Skip to content

Commit 055434b

Browse files
committed
Update kernel_tests for the new execute_result handling
1 parent 7b3403f commit 055434b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

kernel_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -107,14 +107,14 @@ func TestEvaluate(t *testing.T) {
107107
" return 2 + b, b",
108108
"}",
109109
"a(10)",
110-
}, "12"},
110+
}, "12 10"},
111111
{[]string{
112112
`import "errors"`,
113113
"func a() (interface{}, error) {",
114114
` return nil, errors.New("To err is human")`,
115115
"}",
116116
"a()",
117-
}, "To err is human"},
117+
}, "<nil> To err is human"},
118118
{[]string{
119119
`c := []string{"gophernotes", "is", "super", "bad"}`,
120120
"c[:3]",
@@ -125,7 +125,7 @@ func TestEvaluate(t *testing.T) {
125125
` "c": 30,`,
126126
"}",
127127
`m["c"]`,
128-
}, "30"},
128+
}, "30 true"},
129129
{[]string{
130130
"if 1 < 2 {",
131131
" 3",
@@ -141,7 +141,7 @@ func TestEvaluate(t *testing.T) {
141141
" out <- 123",
142142
"}()",
143143
"<-out",
144-
}, "123"},
144+
}, "123 true"},
145145
}
146146

147147
t.Logf("Should be able to evaluate valid code in notebook cells.")

0 commit comments

Comments
 (0)