Skip to content

Commit

Permalink
pkg/eval: Remove duplicate elvts setup "with-deprecation-level".
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaq committed Aug 13, 2024
1 parent 09cd792 commit 0bca193
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 8 deletions.
2 changes: 1 addition & 1 deletion pkg/eval/builtin_fn_num_test.elvts
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ Exception: bad value: divisor must be number other than exact 0, but is exact 0
## implicit cd with / ##
//only-on unix
//in-temp-dir
//with-deprecation-level 21
//deprecation-level 21
~> /
Deprecation: implicit cd is deprecated; use cd or location mode instead
[tty]:1:1-1: /
Expand Down
2 changes: 1 addition & 1 deletion pkg/eval/builtin_special_test.elvts
Original file line number Diff line number Diff line change
Expand Up @@ -974,7 +974,7 @@ Compilation error: superfluous arguments
## importing module triggers check for deprecated features ##
// Regression test for b.elv.sh/1072
//tmp-lib-dir
//with-deprecation-level 21
//deprecation-level 21
~> echo '..' > $lib/dep.elv
// Only show the first line to avoid showing the file path, which contains $lib
// and changes across runs.
Expand Down
2 changes: 1 addition & 1 deletion pkg/eval/compile_effect_test.elvts
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ Exception: exec: "nonexistent-command": executable file not found in %PATH%
///////////////

//in-temp-dir
//with-deprecation-level 21
//deprecation-level 21
~> use os
use path
os:mkdir new-dir
Expand Down
2 changes: 1 addition & 1 deletion pkg/eval/compiler_test.elvts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# compile-time deprecation #
////////////////////////////

//with-deprecation-level 21
//deprecation-level 21
//in-temp-dir
// This test will need to be frequently updated as deprecated commands get
// removed.
Expand Down
4 changes: 0 additions & 4 deletions pkg/eval/transcripts_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ import (
"src.elv.sh/pkg/eval/vars"
"src.elv.sh/pkg/fsutil"
"src.elv.sh/pkg/must"
"src.elv.sh/pkg/prog"
"src.elv.sh/pkg/testutil"
"src.elv.sh/pkg/transcript"
)
Expand Down Expand Up @@ -108,9 +107,6 @@ func TestTranscripts(t *testing.T) {
c := must.OK1(strconv.Atoi(arg))
testutil.Set(t, eval.NextEvalCount, func() int { return c })
},
"with-deprecation-level", func(t *testing.T, arg string) {
testutil.Set(t, &prog.DeprecationLevel, must.OK1(strconv.Atoi(arg)))
},
"mock-time-after", func(t *testing.T) {
testutil.Set(t, eval.TimeAfter,
func(fm *eval.Frame, d time.Duration) <-chan time.Time {
Expand Down

0 comments on commit 0bca193

Please sign in to comment.