tests(f/repl): remove duplicate repl tests
Change-Id: I07635a7f62bf56b4ee9526b5a34f51049554e875
This commit is contained in:
@@ -1,59 +0,0 @@
|
||||
nix-repl> 1 + 1
|
||||
2
|
||||
|
||||
nix-repl> :doc builtins.add
|
||||
Synopsis: builtins.add e1 e2
|
||||
|
||||
Return the sum of the numbers e1 and e2.
|
||||
|
||||
|
||||
nix-repl> f = a: "" + a
|
||||
|
||||
Expect the trace to not contain any traceback:
|
||||
|
||||
nix-repl> f 2
|
||||
error:
|
||||
… while concatenating
|
||||
at «string»:1:11:
|
||||
1| f = a: "" + a
|
||||
| ^
|
||||
|
||||
error: cannot coerce an integer to a string: 2
|
||||
|
||||
nix-repl> :te
|
||||
showing error traces
|
||||
|
||||
Expect the trace to have traceback:
|
||||
|
||||
nix-repl> f 2
|
||||
error:
|
||||
… from call site
|
||||
at «string»:1:1:
|
||||
1| f 2
|
||||
| ^
|
||||
|
||||
… while calling anonymous lambda
|
||||
at «string»:1:5:
|
||||
1| f = a: "" + a
|
||||
| ^
|
||||
|
||||
… while concatenating
|
||||
at «string»:1:11:
|
||||
1| f = a: "" + a
|
||||
| ^
|
||||
|
||||
error: cannot coerce an integer to a string: 2
|
||||
|
||||
Turning it off should also work:
|
||||
|
||||
nix-repl> :te
|
||||
not showing error traces
|
||||
|
||||
nix-repl> f 2
|
||||
error:
|
||||
… while concatenating
|
||||
at «string»:1:11:
|
||||
1| f = a: "" + a
|
||||
| ^
|
||||
|
||||
error: cannot coerce an integer to a string: 2
|
||||
@@ -1 +0,0 @@
|
||||
info: final: prev: builtins.abort "uh oh!"
|
||||
@@ -1,22 +0,0 @@
|
||||
`repl-overlays` that fail to evaluate should error.
|
||||
@args --repl-overlays
|
||||
@args ${PWD}/extra_data/repl-overlay-fail.nix
|
||||
@should-start false
|
||||
error:
|
||||
… while evaluating final
|
||||
at «string»:6:1:
|
||||
5| in
|
||||
6| final
|
||||
| ^
|
||||
7|
|
||||
|
||||
… while calling the 'foldl'' builtin
|
||||
at «string»:4:11:
|
||||
3| let
|
||||
4| final = builtins.foldl' (prev: function: prev // (function info final prev)) initial functions;
|
||||
| ^
|
||||
5| in
|
||||
|
||||
(stack trace truncated; use '--show-trace' to show the full trace)
|
||||
|
||||
error: evaluation aborted with the following error message: 'uh oh!'
|
||||
@@ -176,7 +176,6 @@ TEST_F(ReplSessionTest, tidy)
|
||||
runReplTestPath(#name); \
|
||||
}
|
||||
|
||||
REPL_TEST(basic_repl);
|
||||
REPL_TEST(builtins_warn)
|
||||
REPL_TEST(no_nested_debuggers);
|
||||
REPL_TEST(regression_9917);
|
||||
@@ -189,7 +188,6 @@ REPL_TEST(repl_overlays_regression_l777);
|
||||
REPL_TEST(repl_overlays_compose);
|
||||
REPL_TEST(repl_overlays_destructure_without_dotdotdot_errors);
|
||||
REPL_TEST(repl_overlays_destructure_without_formals_ok);
|
||||
REPL_TEST(repl_overlays_error);
|
||||
REPL_TEST(repl_printing);
|
||||
REPL_TEST(stack_vars);
|
||||
REPL_TEST(errors);
|
||||
|
||||
Reference in New Issue
Block a user