This repository was archived by the owner on Apr 25, 2025. It is now read-only.
File tree 5 files changed +5
-5
lines changed
5 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -513,7 +513,7 @@ let of_assertion mods ass =
513
513
of_assertion' mods act " assert_trap" [] None
514
514
| AssertExhaustion (act , _ ) ->
515
515
of_assertion' mods act " assert_exhaustion" [] None
516
- | AssertUncaughtException act ->
516
+ | AssertException act ->
517
517
of_assertion' mods act " assert_exception" [] None
518
518
519
519
let of_command mods cmd =
Original file line number Diff line number Diff line change @@ -459,7 +459,7 @@ let run_assertion ass =
459
459
| _ -> Assert. error ass.at " expected runtime error"
460
460
)
461
461
462
- | AssertUncaughtException act ->
462
+ | AssertException act ->
463
463
trace (" Asserting exception..." );
464
464
(match run_action act with
465
465
| exception Eval. Exception (_ , msg ) -> ()
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ and assertion' =
32
32
| AssertUninstantiable of definition * string
33
33
| AssertReturn of action * result list
34
34
| AssertTrap of action * string
35
- | AssertUncaughtException of action
35
+ | AssertException of action
36
36
| AssertExhaustion of action * string
37
37
38
38
type command = command ' Source .phrase
Original file line number Diff line number Diff line change @@ -550,7 +550,7 @@ let assertion mode ass =
550
550
[Node (" assert_return" , action mode act :: List. map (result mode) results)]
551
551
| AssertTrap (act , re ) ->
552
552
[Node (" assert_trap" , [action mode act; Atom (string re)])]
553
- | AssertUncaughtException act ->
553
+ | AssertException act ->
554
554
[Node (" assert_exception" , [action mode act])]
555
555
| AssertExhaustion (act , re ) ->
556
556
[Node (" assert_exhaustion" , [action mode act; Atom (string re)])]
Original file line number Diff line number Diff line change @@ -1169,7 +1169,7 @@ assertion :
1169
1169
| LPAR ASSERT_RETURN action result_list RPAR { AssertReturn ($3, $4) @@ at () }
1170
1170
| LPAR ASSERT_TRAP action STRING RPAR { AssertTrap ($3, $4) @@ at () }
1171
1171
| LPAR ASSERT_EXCEPTION action RPAR
1172
- { AssertUncaughtException $3 @@ at () }
1172
+ { AssertException $3 @@ at () }
1173
1173
| LPAR ASSERT_EXHAUSTION action STRING RPAR { AssertExhaustion ($3, $4) @@ at () }
1174
1174
1175
1175
cmd :
You can’t perform that action at this time.
0 commit comments