Skip to content

Commit

Permalink
benches: remove newline
Browse files Browse the repository at this point in the history
  • Loading branch information
c committed Nov 7, 2024
1 parent b52978c commit 03cb4f2
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 12 deletions.
2 changes: 1 addition & 1 deletion tests/bench1.el
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
(uniline-bench
"b RET c - <right> <right> <right> <down> <left> <left> <left> <left> <left> <up> C-SPC <down> <right> <right> <right> <right> <right> <right> <insert> <down> <right> <right> <right> <right> <right> <right> <right> <right> <right> <right> <right> RET RET <down> <right> <right> + <down> <left> <left> <left> <left> <insert> a a <left> <left> <left> <insert> a S-<up> <left> <left> <left> <left> <left> <left> <left> <left> RET <up> <up> <right> <right> <right> <right> <right> <right> <right> <right> <right> <right> <right> <right> <right> <right> - <up> <up> <up>"

"
"\
bc╶┴─╮
╰─┰──╯
Expand Down
2 changes: 1 addition & 1 deletion tests/bench2.el
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

(uniline-bench
"C-c C-c i n i t i a l SPC t e x t e <backspace> <return> SPC SPC g o o d <return> C-a M-x u n i l i n e - m o d e RET <up> <up> C-SPC <down> <right> <right> <right> <right> <right> <right> <right> <right> <right> <right> <right> <right> <insert> <down> <down> <right> <right> <right> R <end> <return> <kp-subtract> <right> q <return> <left> <kp-subtract> <down> <left> <left> <return> <up> <up> <right> <right> <down> <kp-subtract> <up> <right> <right> <right> <up> <up> <up> <return> <down> <down> <down> <up> <up> <right> <down> <down> <down> C-SPC <left> <left> <left> <left> <left> <left> <left> <left> <left> <left> <left> <left> <left> <left> <left> <left> <left> <left> <left> <up> <up> <up> <insert> <up> <down> <down> c <end> C-SPC <insert> y <return> <return> <down> <down> <down> <right> <right> <right> <right> = <down> <left> <left> <left> <left> <left> <left> <insert> s s s <left> <left> <left> <left> <left> <insert> o <left> <left> <left> <left> <left> <left> <up>"
"
"\
╭────────────╮ ╭──╯ ╭────────────╮ ╭──╯
Expand Down
2 changes: 1 addition & 1 deletion tests/bench3.el
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
(uniline-bench
"<return> <down> <down> <right> <right> <right> # <right> <right> <right> <right> <right> <right> <down> <down> <down> <right> <right> <right> <right> <right> <right> <up> <up> <up> <right> <right> <right> <right> <right> <right> <down> <down> <down> <right> <right> <right> <right> <right> <right> <up> <up> <up> <up> <right> <right> <right> <down> <down> <down> <down> <down> <down> <left> <left> <left> <left> <left> <left> <left> <left> <left> <left> <left> <left> <return> <up> <right> <right> <right> <right> <right> <right> <right> <right> <right> <right> <right> <right> <right> <right> <right> <up> C-SPC <down> <down> <down> <down> <right> <right> <right> <right> <right> <right> <right> <right> <right> <right> <right> <right> <insert> r # R <return> <kp-subtract> <down> <down> <down> <down> <right> <right> <right> <right> <right> <right> <right> <right> <right> <right> <right> <up> <up> <up> <up> <left> <left> <left> <left> <left> <left> <left> <left> <left> <left> <left> <return> <left> <left> <left> <left> <left> <left> <left> <left> <left> <left> <left> <left> <left> <left> <left> <left> <left> <left> <left> <left> <left> <left> <left> <up> <up> C-SPC <down> <down> <down> <down> <right> <right> <right> <right> <right> <right> <right> <right> <right> <right> <right> <right> <right> <right> <right> <right> <insert> <down> <down> <right> <right> <right> <return> C-c C-c"

"
"\
▗▄▄▄▄▄▄▄▄▄▄▄▄▖
▐╭──────────╮▌
Expand Down
2 changes: 1 addition & 1 deletion tests/bench4.el
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

(uniline-bench
"<return> <down> <right> <right> <right> <right> <down> <down> <right> <right> <right> <right> <down> <left> M <left> = <up> <up> <up> <right> <right> <right> <right> <right> <right> <down> <down> <down> <left> <left> <insert> a <left> <left> <left> <left> <left> <left> <left> <insert> a a a <left> <down> <down> <down> <right> <right> <right> <right> <up> <up> <up> <return> <up> <up> <right> <right> <insert> s <down> <right> <right> <insert> s s <down> <down> <down> <left> <left> <left> <left> <left> <left> <insert> x <up> <insert> o o o o o <up> <up> <up> <up> <right> <right> <right> <right> <right> <right> <right> <right> <right> C-SPC <down> <down> <down> <down> <down> <down> <left> <left> <left> <left> <left> <left> <left> <left> <left> <left> <left> <left> <insert> c <right> <return> <right> <right> <right> <right> <right> <right> <right> <right> <right> <right> <right> <right> <right> <up> <up> <up> <up> <up> <up> C-SPC <insert> y <return>"
"
"\
╔═════╗ ╔═════╗
║ □ ║ ║ □ ║
Expand Down
2 changes: 1 addition & 1 deletion tests/bench5.el
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

(uniline-bench
"<return> <down> <down> <right> <right> <right> <right> <right> a a a a <right> a a a a <right> <right> <right> a a a <right> <right> <right> a a a a a a a a C-SPC <left> <left> <left> <left> <left> <left> <left> <left> <left> <left> <left> <left> <left> <left> <left> <left> <left> <left> <left> <left> <left> <left> <left> <left> <left> <left> <insert> c <down> <right> <right> y c <down> <right> <right> y <down> <up> c <down> <right> <right> y c <return> <up> <up> <up> <right> C-SPC <down> <down> <down> <right> <right> <right> <right> <right> <right> <right> <right> <right> <kp-subtract> <insert> C-r <return> <right> <right> <right> <right> <right> <right> <right> <down> C-SPC <down> <down> <down> <right> <right> <right> <right> <right> <right> <kp-add> <insert> C-r = R RET"
"
"\
aaaa aa╭─────╦╤╤══aaaaaaaa
Expand Down
9 changes: 2 additions & 7 deletions tests/uniline-bench.el
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,7 @@ nil if there was an error.")
COMMANDS is a string describing a sequence of keyboard strokes,
supposed to draw a sketch using uniline minor-mode.
Its format is the one used to store keyboard macros.
RESULT is a string representing the expected result.
Note that RESULT begins with an empty line not part of the result,
making it more human-readable."
(setq result
(substring result (1+ (string-search "\n" result))))

RESULT is a string representing the expected result."
(ignore-errors (kill-buffer "*uniline-interactive*"))
(switch-to-buffer "*uniline-interactive*")
(uniline-mode 1)
Expand Down Expand Up @@ -102,7 +97,7 @@ Do not call it directly."
(switch-to-buffer "b.el")
(insert "(uniline-bench\n\"")
(insert (key-description (kmacro--keys (kmacro last-kbd-macro))))
(insert "\"\n\"\n")
(insert "\"\n\"\\\n")
(insert-buffer-substring "*uniline-interactive*")
(insert "\")\n")
(lisp-mode))
Expand Down

0 comments on commit 03cb4f2

Please sign in to comment.