Skip to content

Commit 3f3c4f5

Browse files
Fix tests with formatting changes
1 parent dc499c0 commit 3f3c4f5

2 files changed

Lines changed: 0 additions & 36 deletions

File tree

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
; do nothing
22

3-
43
; no output from running this cell
54
;+
65
;-
@@ -10,7 +9,6 @@ pro test1
109
print, 42
1110
end
1211

13-
1412
; if we have a main level, then run it
1513
;+
1614
; :Returns: any
@@ -21,7 +19,6 @@ function foo1
2119
return, 42
2220
end
2321

24-
2522
; main level programs dont need to have an end
2623
;+
2724
; :Returns: any
@@ -32,7 +29,6 @@ function foo2
3229
return, 42
3330
end
3431

35-
3632
; when we have a stop or syntax error, dont stop at it
3733
;+
3834
;-
@@ -41,7 +37,6 @@ pro mypro
4137
stop
4238
end
4339

44-
4540
; dont execute when we have syntax errors 2
4641
;+
4742
;-
@@ -51,7 +46,6 @@ pro syntax_error
5146
a =
5247
end
5348

54-
5549
; main level program
5650
compile_opt idl2
5751

@@ -61,23 +55,19 @@ compile_opt idl2
6155
arr = findgen(42)
6256
help, arr
6357

64-
6558
; we have compile_opt idl2, so we should have a long
6659
a = 15
6760
help, a
6861

69-
7062
; run our procedure from above
7163
test1
7264

73-
7465
; run when we have compile opt and main level end
7566

7667
compile_opt idl2
7768

7869
print, 5
7970

80-
8171
; Some
8272

8373
; Markdown
@@ -86,35 +76,27 @@ print, 5
8676
a = 15
8777
help, a
8878

89-
9079
; we have compile_opt idl2, so we should have a long
9180
a = 15
9281
help, a
9382

94-
9583
; embed graphics
9684
p = plot(/test)
9785

98-
9986
; run cell and dont capture image output (or any output)
10087
!null = 42
10188

102-
10389
; embed more than one graphic
10490
p1 = plot(/test)
10591
p2 = surface(/test)
10692
p3 = barplot(/test)
10793

108-
10994
; run routine with a stop
11095
mypro
11196

112-
11397
; verify we are at the main level (one item in stack trace)
11498
print, n_elements(scope_traceback()), /implied_print
11599

116-
117100
; dont execute when we have syntax errors 1
118101
a =
119-
120102
end
Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
; do nothing
22

3-
43
; no output from running this cell
54
;+
65
;-
@@ -10,7 +9,6 @@ pro test1
109
print, 42
1110
end
1211

13-
1412
; if we have a main level, then run it
1513
;+
1614
; :Returns: any
@@ -21,7 +19,6 @@ function foo1
2119
return, 42
2220
end
2321

24-
2522
; main level programs dont need to have an end
2623
;+
2724
; :Returns: any
@@ -32,7 +29,6 @@ function foo2
3229
return, 42
3330
end
3431

35-
3632
; when we have a stop or syntax error, dont stop at it
3733
;+
3834
;-
@@ -41,7 +37,6 @@ pro mypro
4137
stop
4238
end
4339

44-
4540
; dont execute when we have syntax errors 2
4641
;+
4742
;-
@@ -51,64 +46,51 @@ pro syntax_error
5146
a =
5247
end
5348

54-
5549
; main level program
5650
compile_opt idl2
5751

5852
; run when we dont have compile opt or main level
5953
arr = findgen(42)
6054
help, arr
6155

62-
6356
; we have compile_opt idl2, so we should have a long
6457
a = 15
6558
help, a
6659

67-
6860
; run our procedure from above
6961
test1
7062

71-
7263
; run when we have compile opt and main level end
7364

7465
compile_opt idl2
7566

7667
print, 5
7768

78-
7969
; we have compile_opt idl2, so we should have a long
8070
a = 15
8171
help, a
8272

83-
8473
; we have compile_opt idl2, so we should have a long
8574
a = 15
8675
help, a
8776

88-
8977
; embed graphics
9078
p = plot(/test)
9179

92-
9380
; run cell and dont capture image output (or any output)
9481
!null = 42
9582

96-
9783
; embed more than one graphic
9884
p1 = plot(/test)
9985
p2 = surface(/test)
10086
p3 = barplot(/test)
10187

102-
10388
; run routine with a stop
10489
mypro
10590

106-
10791
; verify we are at the main level (one item in stack trace)
10892
print, n_elements(scope_traceback()), /implied_print
10993

110-
11194
; dont execute when we have syntax errors 1
11295
a =
113-
11496
end

0 commit comments

Comments
 (0)