-
-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Shawn David Pringle, B.Sc.
committed
Dec 31, 2024
1 parent
d6c2ccf
commit 5044c0f
Showing
3 changed files
with
104 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
include std/unittest.e | ||
|
||
procedure delete_proc(integer x) | ||
test_pass(sprintf("deleting %d", {x})) | ||
end procedure | ||
|
||
constant op = delete_routine(1, routine_id("delete_proc")) | ||
|
||
switch op do | ||
case 1 then | ||
test_pass("can use delete_routined value as a value for switch") | ||
end switch | ||
|
||
switch 1 do | ||
case op then | ||
test_pass("can use delete_routined value as a case constant for switch") | ||
end switch | ||
|
||
test_report() |