Skip to content

Commit b58aa80

Browse files
committed
Adjust change for the region normaliation fix (3a91956)
1 parent 3a91956 commit b58aa80

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

test/ess-test-inf.el

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -353,9 +353,9 @@ OUT-STRING is the content of the region captured by
353353

354354
(ert-deftest ess-eval-paragraph-test ()
355355
(let ((inhibit-message ess-inhibit-message-in-tests))
356-
(let ((output "\nlibrary(bbb)\n"))
356+
(let ((output "library(bbb)"))
357357
(ess-test-interactive-eval output
358-
(insert (format "## a comment\n%s\nmore_code4" output))
358+
(insert (format "## a comment\n\n%s\n\nmore_code4" output))
359359
(goto-char (point-min))
360360
(search-forward "lib")
361361
(ess-eval-paragraph)
@@ -366,51 +366,51 @@ OUT-STRING is the content of the region captured by
366366
(ert-deftest ess-eval-and-step-test ()
367367
(let ((inhibit-message ess-inhibit-message-in-tests))
368368

369-
(let ((output "\nreal <- code\n"))
369+
(let ((output "real <- code"))
370370
(ess-test-interactive-eval output
371-
(insert (format "## comment\n%s" output))
371+
(insert (format "## comment\n\n%s" output))
372372
(forward-line -1)
373373
(ess-eval-region-or-function-or-paragraph-and-step)))
374374

375-
(let ((output "xyz <- function () {\n}\n"))
375+
(let ((output "xyz <- function () {\n}"))
376376
(ess-test-interactive-eval output
377377
(insert (format "## comment\n\n%s" output))
378378
(goto-char (point-min))
379379
(forward-line 1)
380380
(ess-eval-region-or-function-or-paragraph-and-step)))
381381

382-
(let ((output "xyz <- function () {\n}\n"))
382+
(let ((output "xyz <- function () {\n}"))
383383
(ess-test-interactive-eval output
384-
(insert (format "## comment\n%ssome_code\n\nmore_code" output))
384+
(insert (format "## comment\n%s\nsome_code\n\nmore_code" output))
385385
(goto-char (point-min))
386386
(forward-line 1)
387387
(ess-eval-region-or-function-or-paragraph-and-step)
388388
(should (looking-at-p "some_code"))))
389389

390-
(let ((output "a <- 1\nb <- 2\n"))
390+
(let ((output "a <- 1\nb <- 2"))
391391
(ess-test-interactive-eval output
392-
(insert (format "%s\nmore_code1()" output))
392+
(insert (format "%s\n\nmore_code1()" output))
393393
(goto-char (point-min))
394394
(ess-eval-region-or-function-or-paragraph-and-step)
395395
(should (looking-at-p "more_code1"))))
396396

397-
(let ((output "a <- 1\nb <- 2\n"))
397+
(let ((output "a <- 1\nb <- 2"))
398398
(ess-test-interactive-eval output
399-
(insert (format "%s\nmore_code2()" output))
399+
(insert (format "%s\n\nmore_code2()" output))
400400
(goto-char (point-min))
401401
(ess-eval-region-or-function-or-paragraph-and-step)
402402
(should (looking-at-p "more_code2"))))
403403

404-
(let ((output "library(aaaa)\n"))
404+
(let ((output "library(aaaa)"))
405405
(ess-test-interactive-eval output
406-
(insert (format "%s\nmore_code3\n" output))
406+
(insert (format "%s\n\nmore_code3\n" output))
407407
(goto-char (point-min))
408408
(ess-eval-region-or-function-or-paragraph-and-step)
409409
(should (looking-at-p "more_code3"))))
410410

411-
(let ((output "\nlibrary(bbb)\n"))
411+
(let ((output "library(bbb)"))
412412
(ess-test-interactive-eval output
413-
(insert (format "## a comment\n%s\nmore_code4" output))
413+
(insert (format "## a comment\n\n%s\n\nmore_code4" output))
414414
(goto-char (point-min))
415415
(ess-eval-region-or-function-or-paragraph-and-step)
416416
(should (looking-at-p "more_code4"))))

0 commit comments

Comments
 (0)