Skip to content

Commit d507fac

Browse files
committed
test: add cases for new diagrams_ related error messages
1 parent fdbbd68 commit d507fac

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

check/features.frm

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3061,3 +3061,43 @@ TableBase "no212.tbl" open, readonly;
30613061
.end
30623062
assert runtime_error?('Trying to open non-existent TableBase in readonly mode: no212.tbl')
30633063
*--#] tablebase_ro_2 :
3064+
*--#[ diagrams_err_1 :
3065+
Model PHI3;
3066+
Particle phi,1;
3067+
Vertex phi,phi,phi:1;
3068+
EndModel;
3069+
.end
3070+
#pend_if mpi?
3071+
assert runtime_error?('Invalid coupling constant in vertex statement.')
3072+
*--#] diagrams_err_1 :
3073+
*--#[ diagrams_err_2 :
3074+
Model PHI3;
3075+
Particle phi,1;
3076+
Vertex phi,phi,phi:g^-1;
3077+
EndModel;
3078+
.end
3079+
#pend_if mpi?
3080+
assert runtime_error?('Invalid negative power of coupling constant.')
3081+
*--#] diagrams_err_2 :
3082+
*--#[ diagrams_err_3 :
3083+
Vector q1,q2,p1,p2;
3084+
Model PHI3;
3085+
Particle phi,1;
3086+
Vertex phi,phi,phi:g;
3087+
EndModel;
3088+
Local test = diagrams_(PHI3,{phi},{phi},{},{p1,p2},1,0);
3089+
.end
3090+
#pend_if mpi?
3091+
assert runtime_error?('Insufficient external momenta in diagrams_')
3092+
*--#] diagrams_err_3 :
3093+
*--#[ diagrams_err_4 :
3094+
Vector q1,q2,p1,p2;
3095+
Model PHI3;
3096+
Particle phi,1;
3097+
Vertex phi,phi,phi:g;
3098+
EndModel;
3099+
Local test = diagrams_(PHI3,{phi},{phi},{q1,q2},{},1,0);
3100+
.end
3101+
#pend_if mpi?
3102+
assert runtime_error?('Insufficient internal momenta in diagrams_')
3103+
*--#] diagrams_err_4 :

0 commit comments

Comments
 (0)