Qi Xiao
183927cffc
Convert tests to transcript tests.
2024-01-30 20:21:39 +00:00
Qi Xiao
fef5049716
pkg/eval: Simplify how exception tracebacks are written.
...
*Exception.Show used to work differently when the traceback contains one frame
vs more frames. Harmonize how they work, and consistent with how parse errors
and compilation errors are shown.
2024-01-16 12:50:59 +00:00
Qi Xiao
4520fc7fd4
pkg/eval: Move time-related builtins to separate file.
2022-11-26 10:41:58 +00:00
Qi Xiao
ed97664695
pkg/eval: Test the exit command by faking os.Exit.
2022-06-23 20:25:01 +01:00
Qi Xiao
6723b9a226
Use consistent pattern for mutating variables in tests.
...
- Use testutil.Set.
- Only export such variables to tests.
2022-06-19 23:56:18 +01:00
Qi Xiao
94e43cd2fd
pkg/eval: Add tests for errors in tilde expansion.
2022-06-19 23:34:36 +01:00