Lines Matching refs:Throws
22 That("put a; e:false; put b").Puts("a").Throws(AnyError),
120 That("{put put} foo").Throws(
125 That("[] foo").Throws(
132 That("put [][1]").Throws(ErrorWithType(errs.OutOfRange{}), "[][1]"),
134 That("put &[]=[]").Throws(
138 That("put &x=[][1]").Throws(ErrorWithType(errs.OutOfRange{}), "[][1]"),
183 That("var li = [foo]; set li[(fail foo)] = bar").Throws(FailError{"foo"}),
185 Throws(ErrorWithMessage("multi indexing not implemented")),
187 Throws(errs.OutOfRange{What: "index",
215 That("x = [][1]").Throws(ErrorWithType(errs.OutOfRange{}), "[][1]"),
227 That("x = 1 2").Throws(
231 That("x y = 1").Throws(
235 That("x y @z = 1").Throws(
242 That("ns: = (ns [&]); ns:a = b").Throws(NoSuchVariable("ns:a"), "ns:a = b"),
287 That(`echo foo >&4`).Throws(AnyError),
305 That("put foo >a").Throws(ErrNoValueOutput, "put foo >a"),
307 That("put foo >&-").Throws(ErrNoValueOutput, "put foo >&-"),
310 That("echo []> test").Throws(
316 That("echo >&test").Throws(
322 That("echo > []").Throws(
329 That("echo > (fail foo)").Throws(FailError{"foo"}, "fail foo"),
330 That("echo (fail foo)> file").Throws(FailError{"foo"}, "fail foo"),
338 That("fail oops").Throws(oops, "fail oops"),
339 That("fn f { fail oops }", "f").Throws(oops, "fail oops ", "f"),
340 That("fn f { fail oops }", "fn g { f }", "g").Throws(
343 That("fn f { }", "f a").Throws(ErrorWithType(errs.ArityMismatch{}), "f a"),
345 That("count 1 2 3").Throws(